Usually I use the command
rsync -av --delete someroot/somedir user@remote_server_ip:/someroot/.
on my development server to synchronize
somedir to a remote server. It worked fine. But after the remote server was restarted this command does not work anymore. It displays the following error messages:
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(463) [sender=2.6.8]
But the SSH service still works correctly. I can use
ssh user@server_ipaddress to log in to the server. How can I make the
rsync work again?
rsync also doesn't work locally. it gives error as follows:
[root@videochatweb1 web]# ./sync_client.sh building file list ... rsync: link_stat "/opt/web/client/index.php" failed: Permission denied (13) done sent 29 bytes received 20 bytes 98.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files could not be transferred (code 23) at main.c(892) [sender=2.6.8]
I compiled the source code of
rsync and reinstall it on the server.Now it works.Thanks for all the suggestions.