This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tar --exclude not working


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

-- 
Eric Blake
volunteer cygwin tar maintainer


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]