www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/15/08:20:41

From: faerber AT ant DOT uni-hannover DOT de (Dirk Färber)
Newsgroups: comp.os.msdos.djgpp
Subject: tar --exclude
Date: 15 Jan 1999 13:00:33 GMT
Organization: Institut für Allgemeine Nachrichtentechnik
Lines: 30
Message-ID: <77ne5h$3es$1@newsserver.rrzn.uni-hannover.de>
NNTP-Posting-Host: at74.ant.uni-hannover.de
Mime-Version: 1.0
X-Newsreader: WinVN 0.99.8 (x86 32bit)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

for some reasons I don't know the exclude of specific files doesn't 
work in the DOS-Shell from Windows95. 
I've tried:
  tar -cvz --exclude=*.log -f archive.tgz *
  tar -cvz --exclude="*.log" -f archive.tgz *
  tar -cvz --exclude-from=donots -f archive.tgz *
  tar -cvz -X donots -f archive.tgz *
  File donots: 
    *.log
  
The rest of tar (version 112) 
works fine. E.g.:
  tar -cvzf archive.tgz *

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.

Does anybody knows, how to get tar to exclude specific files?

Thanks in advance

-Dirk

P.S.: I'm not using the djgpp directory structure. I just copied the 
      needed files tar.exe and gzip.exe to a directory in the search
      path.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019