tar exclude
am 24.01.2008 05:10:36 von Wade Lau
when use tar to collect a dir, if you want to omit some dir(s) or file(s),
you can choose --exclude, as descibled in "man tar" :
"
--exclude=FILE
exclude file FILE
-X, --exclude-from=FILE
exclude files listed in FILE
"
so what is the difference between --exclude and --exclude-from ?
--excludeTUAL_FILE and --exclude-fromTUAL_DIR ?
when tried many times, the following was I did successfully at last,
tar --exclude=./log/* --exclude=./mobilemid* -czvf aa.tar.gz ./*
sounds strange..
--
Wadelau@UFQI.com
Re: tar exclude
am 24.01.2008 05:31:09 von Barry Margolin
In article ,
"Wade Lau" wrote:
> when use tar to collect a dir, if you want to omit some dir(s) or file(s),
> you can choose --exclude, as descibled in "man tar" :
>
> "
> --exclude=FILE
> exclude file FILE
>
> -X, --exclude-from=FILE
> exclude files listed in FILE
>
>
> "
> so what is the difference between --exclude and --exclude-from ?
>
> --excludeTUAL_FILE and --exclude-fromTUAL_DIR ?
No. --exclude-from=FILE_THAT_CONTAINS_FILENAMES
>
>
> when tried many times, the following was I did successfully at last,
>
> tar --exclude=./log/* --exclude=./mobilemid* -czvf aa.tar.gz ./*
>
>
> sounds strange..
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***