Hi Guys
I'm having some real problems configuring Rsync. I haven't done anything complex just yet but I cannot get basics working. I am using a W2K3 SP2 server and the remote client is a Windows XP SP2 client. I am using cwRsync with OpenSSH installed.
Below is my rsyncd.conf file:
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid
# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /cygdrive/c/Upload
read only = false
transfer logging = yes
[backup]
path = /cygdrive/c/Upload
read only = false
transfer logging = yes
Below is my batch file from the remote laptop:
@ECHO OFF
SET SECHAW_IDENTITY="C:\Progra
m Files\cwRsync\Key\cwrsync"
SET SECHAW_TYPE=ssh
SET SECHAW_LOCALPORT=9119
SET SECHAW_SERVER=192.168.0.20
SET SECHAW_SERVERPORT=873
SET SECHAW_USER=SvcwRsync
SET SECHAW_CMD="C:\Program Files\cwRsync\bin\rsync.ex
e" -avz "/cygdrive/c/mike" 192.168.0.20::backup
SET SECHAW_TUNNEL=ssh -i "C:\Program Files\cwRsync\Key\cwrsync"
-L 9119:127.0.0.1:873 SvcwRsync@192.168.0.20 -T -N
"C:\Program Files\cwRsync\bin\sechaw.e
xe" --verbose
And finally, below is the output I am getting on the remote system:
C:\PROGRA~1\cwRsync>test3
The system cannot find the file specified.
Tunnel: ssh
Command to run: "C:\Program Files\cwRsync\bin\rsync.ex
e" -avz "/cygdrive/c/mike"
'192.168.0.20::backup'
Tunnel command: ssh -i "C:\Program Files\cwRsync\Key\cwrsync"
-L 9119:127.0.0.1:
873 SvcwRsync@192.168.0.20 -T -N
Establishing secure channel ...
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1495) [sen
der=3.0.2]
Terminating secure channel ...
C:\PROGRA~1\cwRsync>
Any help to resolve this problem will GREATLY be appreciated!
Thanks!
Start Free Trial