Subject: tar -X
From: "Alistair Grant" <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Tue, 10 Sep 2002 13:45:01 +1000

I'm attempting to exclude files in tar using the -X option, however it appears
that tar is still attempting to at least stat the file.  The command is:

tar czf /e/backup/profile.tar.gz -X /e/bin/backup.dat alistair

backup.dat contains:

alistair/NTUSER.DAT
./alistair/NTUSER.DAT
NTUSER.DAT
*UsrClass.dat
*UsrClass.dat.LOG
*NTUSER.DAT
*NTUSER.DAT.LOG

And tar returns:

tar: alistair/Local Settings/Application Data/Microsoft/Windows/UsrClass.dat:
Cannot open: Permission denied
tar: alistair/Local Settings/Application Data/Microsoft/Windows/UsrClass.dat.LOG:
Cannot open: Permission denied
tar: alistair/NTUSER.DAT: Cannot open: Permission denied
tar: alistair/NTUSER.DAT.LOG: Cannot open: Permission denied
tar: Error exit delayed from previous errors

The reason this is a problem is that I'm running tar in a script and would like
to check for errors, however it is always returning an error at the moment.

Is there a way to exclude files that are open without this type of error?

Thanks,

Alistair.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/