delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <15a6d6ee0702140557q1d59db40oa0d8b2471550affb@mail.gmail.com> |
Date: | Wed, 14 Feb 2007 08:57:39 -0500 |
From: | "Ken Shaffer" <strobelight DOT audio AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: tar --exclude not working |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
> tar tf test.tar --anchored --exclude="D:/" temp$ tar tf tartest.tar -P c:/temp/file1 file2 temp$ tar tf tartest.tar -P --anchored --exclude='/temp' file2 So, if you really want to exclude your D:/Bkp files, you could enter: tar tf test.tar --anchored --exclude='/Bkp' The -P option used on my test tar file forced absolute paths and I didn't get the message "tar: Removing leading `c:/' from member names". In fact, this message clued me to how I might exclude the desired file. Even though it says it removed "c:/", it appears it only removed "c:" since I had to provide the leading / to exclude the file. mount points may also have something to do with the behaviour: c:\temp on /tmp type system (binmode) c: on /c type system (binmode) But, in any event, I'd also agree there's something up with --exclude. Ken -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |