At Fri, 15 Mar 2002 12:54:03 +1100,
Alister Waller <[EMAIL PROTECTED]> wrote:
> I have a folder with some rather large files eg 300MB +
> 
> I want to be able to tar up the whole folder so that I can burn them onto CD
> and put them onto another system. (in another city).
> 
> I have read up a bit on the tar command and think that this should do the
> trick.
> 
> tar cvfk files.tar 600000 RRBKGS*
> 
> I get the following error
> 
> [root@mail murr]# tar cvfk files.tar 600000 *
> tar: You may not specify more than one `-Acdtrux' option
> 

 tar cvfk files.tar 600000 RRBKGS*

is the same as:

 tar -c -v -f -k files.tar 600000 RRBKGS*

"files.tar" is an argument to the "-f" option, thus they need to be
next to each other. this is confusing the argument parsing and giving
you that error. it probably thinks you're doing:
 tar -c -v -f k -f i -l etc..

i'm not sure what you think the -k option does, but (tar version 1.13.25):
  -k, --keep-old-files       don't replace existing files when extracting
probably isn't going to make a difference when creating an archive.

i don't know what you think the 600000 is for - probably something to
do with -k.

i presume RRBKGS* is a shell glob that matches the files you want to
put in the archive..


so. what you wanted is:

 tar cvf files.tar RRBKGS*

the filename has to go next to the "f". and if you have other options,
then you can give them as such:

 tar cvf files.tar -k 600000 RRBKGS*

but don't do that, because GNU tar doesn't treat -k the way you think.

-- 
 - Gus
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to