Rsync Windows <-> Linux

How to run rsync from windows? Simple!

1. Install cwRsync

Unfortunately, there is no native rsync for Windows. But there is rsync build for cygwin - cwRsync. You can download it from:

2. Add $CYGWIN_INSTALL_PATH/bin/ to PATH environment:
Control Panel -> System -> Advanced -> Environment

3. Fix problem with non-ascii filenames

Here is the message describing a problem:

>I'm trying to use rsync (version 2.6.9) to back up some files. However, a few 
>of them contain Hebrew characters. While I can back them up, the filenames 
>come through scrambled (I don't have Hebrew characters anymore). I've tried 
>the -8 switch, but that didn't work. Any suggestions?
>The files are created on Windows and saved on a samba share (v3.0.24). I can 
>copy them around in Windows just fine. Konqueror, on the machine the files 
>are physically on shows the file names properly. But when I copy them using 
>rsync, the file names get scrambled (Hebrew characters only; English 
>characters are fine).

I guess you're using cwrsync which uses the cygwin1.dll. The normal release
is not unicode aware and therefore has problems with non-ascii characters.
I also had this problem with German umlauts. There is a unicode-release
of the cygwin1.dll which you can copy over your existing cygwin1.dll.
In my case the problems went away. The characters still look strange when
looked at in Linux (different codepage, encoding...) but at least from the
samba share they're the same.


So, replace cygwin.dll with version that could be downloaded from from http://www.okisoft.co.jp/esc/utf8-cygwin/

Don't forget to add --iconv=. to rsync command-line options (--incov introduced in rsync 3.0).