using tar
Rick Chen
ver2.02 at gmail.com
Tue Jun 14 07:16:58 UTC 2005
On Mon, 2005-06-13 at 22:24 +0000, yahootintin.11730620 at bloglines.com
wrote:
> hi,
>
> 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.
>
> thanks.
>
tar -czvf /backup.tar.gz --exclude=/home/rick/images/clips/* --
exclude=/home/rick/musics/*.mp3 /home/rick/
tar everything in my home except all of images/clips and mp3 from musics
More information about the fedora-list
mailing list