Friday, June 8, 2012

rsync Error - connection unexpectedly closed

rsync is a command used to copt files from one location to another. Usually used to migrate files from server to server. Today while trying to rsync i got an error.
----
[root@hari home]# rsync -avz root@192.168.1.23:/var/www/ /home/
root@192.168.1.23's password:
bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.6]
----

At 1st i thought rsync command was not installed but it was installed and working correctly since i reached till password prompt.
After a few tests I found the solution. rsync was not installed in the target machine. After installing it in target machine the issue was fixed.

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews