This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
tar -X
- From: "Alistair Grant" <alistair at alphalink dot com dot au>
- To: cygwin at cygwin dot com
- Cc: alistair at alphalink dot com dot au
- Date: Tue, 10 Sep 2002 13:45:01 +1000
- Subject: tar -X
- Reply-to: alistair at alphalink dot com dot au
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/