[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tar exclude file
Hi, Ben-Nes!
On Sun, May 28, 2000 at 11:47:07PM +0300, you wrote the following:
> Hi All
>
> Strange it seems that i already done this in the past but i can exclude
> sub directories from tar.
> tar czv -f ./28-5-00-server-tar.gz -X /backup/exclude.txt /
>
> the exclude file have for example
> usr << this drop all usr directory
> var/lib <<< don't work
>
> tried with * and "" + and all stuff i could remeber.
> maybe its to late in the night or im too old ;)
> how do i exlude some/dir ?
The following works fine for me (part of my backup script):
tar -zlcvf root.tar.gz \
--exclude='/var/*' --exclude='/usr/*' --exclude='/etc/*' /
--
Alex Shnitman | http://www.debian.org
alexsh@hectic.net, alexsh@linux.org.il +-----------------------
http://alexsh.hectic.net UIN 188956 PGP key on web page
E1 F2 7B 6C A0 31 80 28 63 B8 02 BA 65 C7 8B BA
Linux and other Open Source advocates are making a progressively more
credible argument that Open Source software is at least as robust --
if not more -- than commercial alternatives. The Internet provides an
ideal, high-visibility showcase for the Open Source world.
-- Internal Microsoft memo
=================================================================
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