delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "Alistair Grant" <alistair AT alphalink DOT com DOT au> |
Reply-to: | 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 |
Message-id: | <3d7d6abd.c86.0@alphalink.com.au> |
X-User-Info: | 155.35.248.112 |
MIME-Version: | 1.0 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |