Rsync Windows <-> Linux

 

How to run rsync from windows?

1. Install cwRsync

Unfortunately, there is no native rsync for Windows. But there is rsync build for cygwin - cwRsync.

You can download it from:
http://downloads.sourceforge.net/sereds/cwRsync_2.1.5_Installer.zip?modt...

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?
>
>Background:
>
>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.
 
http://www.okisoft.co.jp/esc/utf8-cygwin/

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

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

Nice!

Nice!

I tried to use Rsync Win32 (client) -> Linux (server) some years ago and I had problems with the Swedish chars (åäö) so I'm currently using Robocopy instead but I'll give rsync another go!

Thanks!

DeltaCopy

There does exist a native rsynch for Windows, that does not require cygwin.

http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp

delta copy is not compatible

delta copy is not compatible with *nix rsync server.

re: delta copy is not compatible

why not?
In my environment (Win7 x64 + Debian stable x86) it is working smoothly.

I tried to use Rsync Win32

I tried to use Rsync Win32 (client) -> Linux (server) some years ago and I had problems with the Swedish chars (åäö) so I'm currently using Robocopy instead but I'll give rsync another go!

DeltaCopy uses cyqwin, too

Hallo Dan Dascalescu,

The open source programm DeltaCopy from Synametrics Technologies uses cyqwin, too. It's not a native Win32 programm, as you mentioned in your post.

See you.

To those struggling to

To those struggling to download the utf-8 version cygwin.dll
here is the updated link to go
http://www.oki-osk.jp/esc/utf8-cygwin/

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

User login

Syndicate

Syndicate content