Re: rsync colon in filename to MSWin fails
Here's a good workaround. This works for me from Linux to Win32. In your rsync script, before the rsync, do either find ./ -name '*:*' | xargs tar -czvf colon_files.tgz or (if you're doing the whole box as an rsync backup, like I am) do updatedb locate : | xargs tar -czvf colon_files.tgz Make sure that colon_files.tgz is in the path that's getting backed up by rsync. Then you can do the --exclude '*:*' in your rsync job to skip the files you just tarred. I tested this with the locate version above and it works. Also, updatedb locate should go much faster than find if you want to do the whole box. I'm not sure if there's a way to use locate to just search a subdirectory, though. Best, Dave Anton Shterenlikht wrote: I cannot trasfer a file with a colon via rsync to a Win box. I've rsync-3.0.4 on the FBSD (sending side) and rsync-2.6.9 under cygwin on Win (receiving side). I'm not sure what the error message means: % rsync ./http:__en.wikipedia.org_favicon.ico me...@xxx.xxx.xxx.xxx: rsync: rename /cygdrive/c/Documents and Settings/mexas/My Documents/work/.http:__en.wikipedia.org_favicon.ico.8dBX2K - http:__en.wikipedia.org_favicon.ico: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1040) [sender=3.0.4] Note the extra dot before the file name, and extra suffix at the end. Is this the expected behaviour? However, to another FBSD box transfer is fine: % rsync ./http:__en.wikipedia.org_favicon.ico me...@zzz.zzz.zzz.zzz: % Is this something to do with Windows, or old rsync version on cygwin? Even more bizzare, I get the same error even if I --exclude all such files from transfer. many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- View this message in context: http://www.nabble.com/rsync-colon-in-filename-to-MSWin-fails-tp19571614p23925088.html Sent from the freebsd-questions mailing list archive at Nabble.com. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Fwd: rsync colon in filename to MSWin fails
Dagnabbit! Meant to also send this to the list. Kurt On Fri, Sep 19, 2008 at 10:28, Giorgos Keramidaskeram...@ceid.upatras.gr wrote: On Fri, 19 Sep 2008 13:37:50 +0100, Anton Shterenlikht me...@bristol.ac.uk wrote: I cannot trasfer a file with a colon via rsync to a Win box. I've rsync-3.0.4 on the FBSD (sending side) and rsync-2.6.9 under cygwin on Win (receiving side). I'm not sure what the error message means: % rsync ./http:__en.wikipedia.org_favicon.ico me...@xxx.xxx.xxx.xxx: rsync: rename /cygdrive/c/Documents and Settings/mexas/My Documents/work/.http:__en.wikipedia.org_favicon.ico.8dBX2K - http:__en.wikipedia.org_favicon.ico: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1040) [sender=3.0.4] Note the extra dot before the file name, and extra suffix at the end. Is this the expected behaviour? Yes, this is the expected broken behavior of Windows. The ':' character cannot be used in a normal filename in Windows. The bug goes way back, when DOS developers chose to use ':' to denote 'drive names'. However, to another FBSD box transfer is fine: % rsync ./http:__en.wikipedia.org_favicon.ico me...@zzz.zzz.zzz.zzz: % UNIX only reserves '/' as the path separator (and in some cases the '\0' character for the end-of-fiename string marker). So the ':' character is valid for file names or directory names. Is this something to do with Windows, or old rsync version on cygwin? Yes, it has to do with Windows. It does indeed have to do with Windows - see this article: http://msdn.microsoft.com/en-us/library/aa365247.aspx However, there's another thing to know about the use of colons in file names, and it's not simply to do with driver letters - NTFS has a facility called Alternate Data Streams, which was implemented to support Macintoshes, originally. See this article for a start: http://msdn.microsoft.com/en-us/library/aa364404(VS.85).aspx ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
rsync colon in filename to MSWin fails
I cannot trasfer a file with a colon via rsync to a Win box. I've rsync-3.0.4 on the FBSD (sending side) and rsync-2.6.9 under cygwin on Win (receiving side). I'm not sure what the error message means: % rsync ./http:__en.wikipedia.org_favicon.ico [EMAIL PROTECTED]: rsync: rename /cygdrive/c/Documents and Settings/mexas/My Documents/work/.http:__en.wikipedia.org_favicon.ico.8dBX2K - http:__en.wikipedia.org_favicon.ico: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1040) [sender=3.0.4] Note the extra dot before the file name, and extra suffix at the end. Is this the expected behaviour? However, to another FBSD box transfer is fine: % rsync ./http:__en.wikipedia.org_favicon.ico [EMAIL PROTECTED]: % Is this something to do with Windows, or old rsync version on cygwin? Even more bizzare, I get the same error even if I --exclude all such files from transfer. many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: rsync colon in filename to MSWin fails
On Fri, 19 Sep 2008 13:37:50 +0100, Anton Shterenlikht [EMAIL PROTECTED] wrote: I cannot trasfer a file with a colon via rsync to a Win box. I've rsync-3.0.4 on the FBSD (sending side) and rsync-2.6.9 under cygwin on Win (receiving side). I'm not sure what the error message means: % rsync ./http:__en.wikipedia.org_favicon.ico [EMAIL PROTECTED]: rsync: rename /cygdrive/c/Documents and Settings/mexas/My Documents/work/.http:__en.wikipedia.org_favicon.ico.8dBX2K - http:__en.wikipedia.org_favicon.ico: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1040) [sender=3.0.4] Note the extra dot before the file name, and extra suffix at the end. Is this the expected behaviour? Yes, this is the expected broken behavior of Windows. The ':' character cannot be used in a normal filename in Windows. The bug goes way back, when DOS developers chose to use ':' to denote 'drive names'. However, to another FBSD box transfer is fine: % rsync ./http:__en.wikipedia.org_favicon.ico [EMAIL PROTECTED]: % UNIX only reserves '/' as the path separator (and in some cases the '\0' character for the end-of-fiename string marker). So the ':' character is valid for file names or directory names. Is this something to do with Windows, or old rsync version on cygwin? Yes, it has to do with Windows. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]