Re: using tar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Di, den 14.06.2005 schrieb yahootintin.11730620@xxxxxxxxxxxxx um
0:24:

> i'm using tar to gzip some directories like this:
>   tar cvzf ~/foo.tar.gz
> /foo
> 
> this tars everything in the foo directory.  but i want it to tar everything
> in the foo directory except for the bar subdirectory (eg. /foo/bar).  i've
> looked at the man pages and can't figure out how the exclude flag works.

tar czvf ~/foo.tar.gz --exclude=/foo/bar* /foo

or

tar czv --exclude=/foo/bar* -f /foo.tar.gz /foo

Alexander
 

-- 
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.27_FC2smp 
Serendipity 00:42:15 up 20 days, 23:20, load average: 0.37, 0.48, 0.76 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux