From owner-freebsd-questions@FreeBSD.ORG Sun Jul 11 03:00:35 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6A0E16A4CE for ; Sun, 11 Jul 2004 03:00:35 +0000 (GMT) Received: from makeworld.com (makeworld.com [198.92.228.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A0D743D2D for ; Sun, 11 Jul 2004 03:00:35 +0000 (GMT) (envelope-from racerx@makeworld.com) Received: from racerx.makeworld.com (racerx@racerx.makeworld.com [198.92.228.34]) by makeworld.com (8.12.10/8.12.10) with ESMTP id i6B30UEx054136 for ; Sat, 10 Jul 2004 22:00:30 -0500 (CDT) (envelope-from racerx@makeworld.com) From: Chris To: freebsd-questions@freebsd.org Date: Sat, 10 Jul 2004 22:00:30 -0500 User-Agent: KMail/1.6.2 References: <2785.192.168.1.1.1089514540.squirrel@192.168.1.1> In-Reply-To: <2785.192.168.1.1.1089514540.squirrel@192.168.1.1> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407102200.30326.racerx@makeworld.com> X-makeworld.com-MailScanner-Information: Please contact the ISP for more information X-makeworld.com-MailScanner: Found to be clean X-MailScanner-From: racerx@makeworld.com Subject: Re: excluding from tar X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: racerx@makeworld.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2004 03:00:35 -0000 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)