This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

tar -X


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]