This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: tar --exclude not working
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/