Date: Sat, 10 Jul 2004 22:00:30 -0500 From: Chris <racerx@makeworld.com> To: freebsd-questions@freebsd.org Subject: Re: excluding from tar Message-ID: <200407102200.30326.racerx@makeworld.com> In-Reply-To: <2785.192.168.1.1.1089514540.squirrel@192.168.1.1> References: <2785.192.168.1.1.1089514540.squirrel@192.168.1.1>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 10 July 2004 09:55 pm, D Golden wrote: > I've created a tar archive of my entire system, but I want to exclude > everything in /proc , /usr/ports, and the FILE /usr/backup.tar when > updating the archive. I've tried: > > 1. cd / && tar -vu --file /usr/backup.tar * --exclude=/proc > --exclude=/usr/ports --exclude=/usr/backup.tar > > 2. cd / && tar -vu --file /usr/backup.tar * --exclude=/proc/* > --exclude=/usr/ports/* --exclude=/usr/backup.tar > > 3. cd / && tar -vu -X /root/nodump --file /usr/backup.tar * > > and in /root/nodump I have 3 lines: > > /proc # Also tried /proc/* > /usr/ports # Also tried /usr/ports/* > /usr/backup.tar > > However, in all three examples, /proc , /usr/ports, and the FILE get > updated. > > What am I missing? > > Dana Here is what I use - hack to suit: tar -zcf racerx@${ver}`date +%m%d%y`.tgz --exclude-from /usr/home/backups/exclude.txt racerx/ Have all the excludes in the file /exclude.txt racerx# more exclude.txt /usr/home/backups/* /usr/home/racerx/Desktop/MP3/* /usr/home/racerx/downloads/* /usr/home/racerx/dcc/* > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" -- Best regards, Chris -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ClamAV virus dat updated: Sat Jul 10 2004 at 03:02:53 daily.cvd is up to date (version: 400, sigs: 778, f-level: 2, builder: tkojm)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407102200.30326.racerx>