[opensuse] Using tar command with --exclude=
I'm trying to use the tar command in a BASH shell and want to exclude files. If I use this command: tar --exclude=._* -cvfj oldemail.tbz bzip2 tar creates an archive named j I have tried other variations of the --exclude= command with errors made in naming or creation of the tar file. TIA. -- Best Regards, Keith kilowattradio@comcast.net http://home.comcast.net/~kilowattradio/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, Jun 18, 2010 at 03:51, Keith
I'm trying to use the tar command in a BASH shell and want to exclude files. If I use this command: tar --exclude=._* -cvfj oldemail.tbz bzip2
tar creates an archive named j
That's because j should be the last option before the file being created. Try tar --exclude=._* -cvjf oldemail.tbz bzip2 ne... -- Registered Linux User # 125653 (http://counter.li.org) Now accepting personal mail for GMail invites. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I'm trying to use the tar command in a BASH shell and want to exclude files. If I use this command: tar --exclude=._* -cvfj oldemail.tbz bzip2
tar creates an archive named j
I have tried other variations of the --exclude= command with errors made in naming or creation of the tar file.
TIA. The problem is not in the exclude option; -f is used to specify the filename of the archive you are creating, it reads whatever is immediately following. In this case it is "j". So the mistake is not
On 18/06/10 03:51, Keith wrote: putting -f as the last option. Also, leaving a '*' unquoted like that doesn't seem right, if there are files that match the glob in the current directory it will fail. And what are the files you are trying to compress? Are they really called "bzip2"? try instead tar --exclude='._*' -cvjf oldemail.tbz email where "email" is the dir you are trying to compress Regards, Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Keith
-
ne...
-
Tejas Guruswamy