'rsync' is not recognized as an internal or external command, operable program or batch file

2

I am VERY new to rsync and cygwin and I'm pretty sure I've installed everything correctly. I am trying to (for now) just rsync two Windows XP Laptops to tranfer files across from the one to the other to get a feel of it before I tackle bigger projects.

This is the code I try use to transfer the files but I always get the same error.

$ rsync -zrptL -v -e 'ssh -p 222' /tmp/rawr/
Admin@192.168.0.113:/tmp/play Admin@192.168.0.113's password:

'rsync' is not recognized as an internal or external command, operable
program or batch file.

rsync: connection unexpectedly closed (0 bytes received so far)
[sender]

rsync error: error in rsync protocol data stream (code 12) at
/home/lapo/package/rsync-3.0.9-1/src/rsync-3.0.9/io.c(605)
[sender=3.0.9]

What could be the problem? I am really stuck at the moment.

user1688269

Posted 2012-09-21T09:01:03.920

Reputation:

Answers

1

Make sure that the laptop acting as the remote has the sshd daemon running. Also make sure your versions are the same and just to make sure all is good, specify the absolute path to ssh.

Have you tried rsync locally on both laptops? For example on laptop A do 'rsync /cygdrive/c/tmp /cygdrive/c/tmp2' to make sure that rsync works locally first. Then try to tackle it over the network.

Johnnie

Posted 2012-09-21T09:01:03.920

Reputation: 262