Chris Garrigues
2001-Aug-09 05:57 UTC
how do I rsync files which have a colon in the name?
I can't figure out how to quote a colon in a filename that I'm trying to push so that it doesn't think everything in front of the colon is a hostname. Chris -- Chris Garrigues http://www.DeepEddy.Com/~cwg/ virCIO http://www.virCIO.Com 4314 Avenue C Austin, TX 78751-3709 +1 512 374 0500 My email address is an experiment in SPAM elimination. For an explanation of what we're doing, see http://www.DeepEddy.Com/tms.html Nobody ever got fired for buying Microsoft, but they could get fired for relying on Microsoft. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 235 bytes Desc: not available Url : http://lists.samba.org/archive/rsync/attachments/20010808/6980f494/attachment.bin
On Wed, Aug 08, 2001 at 02:57:12PM -0500, Chris Garrigues wrote:> I can't figure out how to quote a colon in a filename that I'm trying to push so > that it doesn't think everything in front of the colon is a hostname. > > ChrisHow about naming the directory it is in and using an --include of the file you want and an --exclude '*'. For example, mkdir a b touch a/f:oo rsync -av --include "f:oo" --exclude '*' a/ b Oh, hey, I just checked the source code. It will ignore the colon if there's a slash in the path ahead of the colon: rsync -av a/f:oo b If you're copying from the current directory, use "./f:oo". - Dave Dykstra