Rsync Server under Windows is possible with cygwin and cwrsync!
You can get cwRsync with cygwin dlls here:
http://itefix.no/cwrsync/
Install it, create a rsync.conf file, but two things are
important for running rsync on windows:
strict modes = false
use chroot =false
My
rsync.conf looks like this:
secrets file = /cygdrive/c/Programme/cwRsync/passwds
log file = /cygdrive/c/Programme/cwRsync/rsyncd.log
pid file = /cygdrive/c/Programme/cwRsync/rsyncd.pid
strict modes = false
use chroot = false
[Backup]
comment = Files for Backup
path = c:\files
auth users = backup
hosts deny = *
hosts allow = 192.168.0.0/255.255.255.0
read only = yes
list = false
The password file has got that format:
username:password
For installing rsync as a Server you need the programs:
- instsrv.exe
- srvany.exe
Now execute this command:
instsrv.exe "Rsync c:\path\to\srvany.exe
Do not start the service now!
Open
regedit and insert the following lins to that path:
HKEY_LOCAL_MACHINE\SYSTEMS\CurrentControlSet\Services\Rsync\Parameters
AppDirectory REG_SZ "c:\Programme\cwrsync\bin"
Application REG_SZ "c:\Programme\cwrsync\bin\rsync.exe"
AppParameters REG_SZ "--daemon --config=/cygdrive/c/Programme/cwRsync/rsync.conf"
Now you can start rsync as a normal service.