From owner-freebsd-questions Tue Aug 1 10:18:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from apotheosis.org.za (apotheosis.org.za [137.158.128.27]) by hub.freebsd.org (Postfix) with ESMTP id E17DF37BFA4 for ; Tue, 1 Aug 2000 10:18:03 -0700 (PDT) (envelope-from mwest@uct.ac.za) Date: Tue, 1 Aug 2000 19:17:09 +0200 From: Matthew West To: Alfred Perlstein Cc: Nathan Vidican , questions@FreeBSD.ORG Subject: Re: excluding a file/dir from a tar file Message-ID: <20000801191709.A4001@apotheosis.org.za> Mail-Followup-To: Alfred Perlstein , Nathan Vidican , questions@FreeBSD.ORG References: <3986BD05.3D19504D@wmptl.com> <20000801142223.A93938@apotheosis.org.za> <20000801085052.P4854@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000801085052.P4854@fw.wintelcom.net>; from "Alfred Perlstein" on Tue, Aug 01, 2000 at 08:50:52AM Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Whoops! Quite right; tar will think that "--exclude" is a file to be added to the archive if you don't use "-czvf". -- mwest@uct.ac.za On Tue, Aug 01, 2000 at 08:50:52AM -0700, Alfred Perlstein wrote: > Just a non-obvious observation, I'm quite certain that you can't > mix the non '-' flags with '--' flags: > > tar czvf file.tgz --exclude /server /path > won't work, while: > tar -czvf file.tgz --exclude /server /path > should. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message