From owner-freebsd-questions Fri Nov 14 16:12:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id QAA14823 for questions-outgoing; Fri, 14 Nov 1997 16:12:24 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from teel.info-noire.com (slpp-106.interlinx.qc.ca [207.134.144.126]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id QAA14812 for ; Fri, 14 Nov 1997 16:12:17 -0800 (PST) (envelope-from alex@teel.info-noire.com) Received: from localhost (alex@localhost) by teel.info-noire.com (8.8.8/8.8.5) with SMTP id OAA00521; Fri, 14 Nov 1997 14:31:04 -0500 (EST) Date: Fri, 14 Nov 1997 14:31:04 -0500 (EST) From: Alex Boisvert Reply-To: Alex Boisvert To: "Randy A. Katz" cc: questions@FreeBSD.ORG Subject: Re: TAR EXCLUDE In-Reply-To: <3.0.5.32.19971114073004.0374db50@ccsales.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > 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 /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