Date: Sun, 17 Jan 1999 12:17:12 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Dirk Färber cc: djgpp AT delorie DOT com Subject: Re: tar --exclude In-Reply-To: <77ne5h$3es$1@newsserver.rrzn.uni-hannover.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id FAA18332 Reply-To: djgpp AT delorie DOT com On 15 Jan 1999, Dirk Färber wrote: > The manual says, that files explicitly included in the file list override > the exclude list. I hope, that * is not an explicit inclusion in this > sense. Of course * is explicitly including every file in the directory, since the DJGPP startup code expands * to the list of all files, just like it happens on Unix. And that is why --exclude doesn't seem to work in your case. Instead of "*" try ".", like this: > tar -cvz --exclude="*.log" -f archive.tgz . (You MUST put quotes around *.log.)