Date: Fri, 14 Nov 1997 14:31:04 -0500 (EST) From: Alex Boisvert <alex@teel.info-noire.com> To: "Randy A. Katz" <randyk@ccsales.com> Cc: questions@FreeBSD.ORG Subject: Re: TAR EXCLUDE Message-ID: <Pine.BSF.3.95q.971114142805.145A-100000@teel.info-noire.com> In-Reply-To: <3.0.5.32.19971114073004.0374db50@ccsales.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Has anyone successfully tar'ed a directory exluding one or more > subdirectories from being included in the tar archive? Yes, I've succeeded ... but using absolute path names instead of relative path names (if I remember correctly). Here's the script I use: tar --exclude-from exclude.files -cvzf <destination> /home/alex/* and my "exclude.files" looks like this: /home/alex/ardoise/* /home/alex/ports/* /home/alex/.netscape/* /home/alex/tmp/* /home/alex/download/* Good luck, Alex. --- FreeBSD: Decouvrez la puissance de votre PC! www.freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.971114142805.145A-100000>