Rsync

Aus Weis nix
Wechseln zu: Navigation, Suche

rsync is an open source utility that provides fast incremental file transfer. Rsync uses the Rsync algorithm which provides a very fast method for bringing remote files into sync. It does this by sending just the differences in the files across the link, without requiring that both sets of files are present at one of the ends of the link beforehand.

Software

  • cwRsync - Easy to use installer with Client for Windows9x/NT/2000/XP/2003 and Server for NT/2000/XP/2003
  • Rsync - the homepage with the original Unix sources.
  • Rsync for Windows - instruction on setup using cygwin emulation.

Alternative Software

Configuration

Q: How can I use cwRsync between two windows machines within a secure network?

A: Assuming that you want to synchronize directory c:\srcdir on machine WINCLIENT with directory c:\destdir on machine WINSERVER :

On WINSERVER :

- Install cwRsync Server (without openssh component)
- Start RsyncServer service
- Use Prep a Dir for Upload wizard for the directory c:\destdir
- Add a new module to rsyncd.conf :
     [wintest]
     path = /cygdrive/c/destdir
     read only = false
     transfer logging = yes

On WINCLIENT :

- Install cwRsync
- Use batch file below to initiate rsync:
     @ECHO OFF
     SET CYGWIN=nontsec
     "c:\Program Files\cwRsync\rsync" -avr /cygdrive/c/srcdir/ WINSERVER::wintest

Keep in mind that the recipe above is suitable for operations within a secure network only (i.e. VPN) as transfers are not encrypted.

Additional Configuration

  • target Windows folders to be mirrored must contain the user "Everyone" with read access
  • the rsyncd service must be set for automatic startup in the Administration - Services panel