Good day, I have been doing some tests with rsync on windows (client) to backup to a linux server. I started out with cwrsync, but ran into the dreaded "File name too long (91)" error. Apparently due to an issue with the cygwin portion of it. So I was then testing with a newer version of cygwin (1.7 beta) as the long file name issue was resolved. In testing that with some large files (PST in this case), rsync seems to take over the whole file, and not just the differences. my command i used was: rsync -av --chmod u+wrx "/cygdrive/c//Documents and Settings/User/ Desktop" "/cygdrive/z/clients/User This was just a local sync. Curious what ppeople are using for rsync on Windows with long file name support. And also curious as to why rsync wuld pull over the whole PST file again. Thanks! dnk
Fabian Cenedese
2009-Mar-27 08:13 UTC
best rsync for use with windows (client) and long file names
At 15:57 26.03.2009 -0700, dnk wrote:>Good day, > >I have been doing some tests with rsync on windows (client) to backup >to a linux server. > >I started out with cwrsync, but ran into the dreaded "File name too >long (91)" error. Apparently due to an issue with the cygwin portion >of it. So I was then testing with a newer version of cygwin (1.7 beta) >as the long file name issue was resolved. > >In testing that with some large files (PST in this case), rsync seems >to take over the whole file, and not just the differences.The delta algorithm is only used if you access a remote server (e.g. with server::dest/path). For local syncs it is usually faster to just copy the whole file than to reconstruct it from the old file plus differences. There are switches to ease this behaviour a bit (like change dest in-file instead of copying it, append at the end) but unless you know what you're doing you should keep the default behaviour. I also use cwrsync but the few cases where the path was too long I just shortened the source. Of course that may not be possible for you. bye Fabi
Michal Soltys
2009-Mar-27 12:02 UTC
best rsync for use with windows (client) and long file names
Fabian Cenedese wrote:> > I also use cwrsync but the few cases where the path was too > long I just shortened the source. Of course that may not be > possible for you. > > bye Fabi >Remember about cygwin1.dll with utf8 support (using unicode win32 api). Side effect of it is that the paths are limited to 32767 iirc. Either way - it works fine for me, and I have some very long weird japanese file names here and there. Check: http://www.okisoft.co.jp/esc/utf8-cygwin/ for details.