Mail Archives: djgpp/1999/01/16/05:35:54
Dirk Färber (faerber AT ant DOT uni-hannover DOT de) wrote:
: 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.
I'm afraid that * is expanded to all the files in the current
directory before it is passed to tar itself. Hence * is an explicit
inclusion. Try "tar -cvz --exclude-from=donots -f archive.tgz .",
which might work.
Right,
MartinS
- Raw text -