Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Aug 2000 19:17:09 +0200
From:      Matthew West <mwest@uct.ac.za>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        Nathan Vidican <webmaster@wmptl.com>, questions@FreeBSD.ORG
Subject:   Re: excluding a file/dir from a tar file
Message-ID:  <20000801191709.A4001@apotheosis.org.za>
In-Reply-To: <20000801085052.P4854@fw.wintelcom.net>; from "Alfred Perlstein" on Tue, Aug 01, 2000 at 08:50:52AM
References:  <3986BD05.3D19504D@wmptl.com> <20000801142223.A93938@apotheosis.org.za> <20000801085052.P4854@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000801191709.A4001>