[Eug-lug] error message
Neil Parker
nparker at lyl.llx.com
Tue Oct 23 22:18:52 PDT 2007
>What is this error message?
>
>-Acdtrux
It's just part of the longer error message, which is trying to tell you
that the tar options "A", "c", "d", "t", "r", "u", and "x" are mutually
exclusive--it only makes sense to have one of them on a given command line.
>[root at localhost wes]# ]tar -cvzf emailbackup.tgz
>
>bash: ]tar: command not found
This was almost right--taking out the "]" wouldn't have completely solved
the problem, but would have helped a lot.
>[root at localhost wes]# tar cuzf emailbackup1.rgz
>
>tar: You may not specify more than one `-Acdtrux' option
>
>Try `tar --help' for more information.
Here you've gotten rid of the "]", but also replaced the "v" with a "u".
It really needs to be "v"..."u" means something completely different.
>[root at localhost wes]# tar -cuzf emailbackup1.tgz
>
>tar: You may not specify more than one `-Acdtrux' option
>
>Try `tar --help' for more information.
Here you've just added a "-" to the front of the arguments. That's fine
(tar doesn't care whether or not the "-" is there), but the "u" is still
there and still causing problems.
The full command you seem to be looking for is this:
tar cvzf (archivename).tgz (filename1) (filename2) ...
This creates the archive "(archivename).tgz", stores the indicated files in
it, and compresses it. If one of the filenames is the name of a
directory, the entire contents of the directory will be added to the
archive.
The "v" can be left out (in which case tar won't print the filenames as it
works), but must NOT be replaced by "u".
- Neil Parker
More information about the EUGLUG
mailing list