[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tar exclude file
Alex Shnitman wrote:
> Whoops, forgot to mention (another line from same script):
> tar -zcvf var.tar.gz --exclude='/var/spool/squid/*' /var
> So excluding deeper directories shouldn't be a problem either.
Note: --exclude does not care about files, but works on a regexp base.
that means: if you will try to:
$ cd /var/spool
$ tar cf /tmp/foo.gz --exclude='../log' /var
hoping that ../log and /var/log have same inode, you will be
surprised.
--
Omer Mussaev 051-308-214 mailto:omerm@mercury.co.il
systems programmer, Mercury Interactive/RND/Conduct/core
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il