delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/14/10:26:06

X-Spam-Check-By: sourceware.org
Date: Wed, 14 Feb 2007 10:25:33 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: tar --exclude not working
Message-ID: <20070214152533.GB18130@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <021420071452 DOT 4399 DOT 45D32245000CC5D30000112F22135753330A050E040D0C079D0A AT comcast DOT net>
Mime-Version: 1.0
In-Reply-To: <021420071452.4399.45D32245000CC5D30000112F22135753330A050E040D0C079D0A@comcast.net>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Wed, Feb 14, 2007 at 02:52:53PM +0000, Eric Blake wrote:
>> I'm using tar (GNU tar) 1.16.1 and have an archive with the following entries.
>> Files/report1.html
>> Files/report2.html
>> Files/report3.html
>> Files/report4.html
>> D:/Bkp/sol/
>> D:/Bkp/sol/test1.pl
>> D:/Bkp/sol/test2.pl
>> D:/Bkp/sol/test3.pl
>> 
>> Whenever, I try to exclude files starting with "D:/" its not working
>> as expected.
>
>Tar has special treatment of command-line arguments with colons,
>trying to treat it as a path to a remote machine.  Tar archives created
>with drive letters are inherently non-portable, and under cygwin, you
>should create tar archives using a POSIX name such as /cygdrive/d
>rather than d:/ (or whatever you mount your cygdrive as).
>
>> 
>> Is this a bug? Can it be worked atound?
>
>I have done nothing in this regards that is cygwin-specific.  If it is
>a bug, then it is an upstream one.  But more likely, it is merely a
>matter of your using drive letters when tar tries to interpret them
>as remote machine names.

Maybe this should be a FAQ.  It sure comes up enough.

Do we have anyone whose willing to update the FAQ with this info?

cgf

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019