How to exclude a dir. with tar

Guillaume guillaume.chardin at gmail.com
Thu Feb 1 14:32:58 UTC 2007


Hi list...

I try to make a script to save my computer. I would like tu use tar to
create a  file and then compress it.
I have a directory to save located in a home dir, but inside it a temp dir I
dont want to save. I try the --exclude option of tar to discard this one,
but it don't seem to work.
Someone can help me?

Can i use in the same way the ' -X option to exlude more than 1 dir?

tar --acls --append --exclude /home/web/current/temp  -vf
/data/save/save.tar /home/web/current/ >> /data/save/sauve.log

Thanks for your help.
Guillaume
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070201/e8449b6e/attachment-0001.htm>


More information about the fedora-list mailing list