Part of our backup routine is a cron job that runs rsync over ssh to an
offsite computer every night. Recently I have noticed that it fails
about 1/2 of the time, not always and a failed rysnc one night might
work fine the next night.
The error we get is:
Write failed: Broken pipe
rsync: connection unexpectedly closed (13729658 bytes received so far)
[receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(601)
[receiver=3.0.7]
rsync: connection unexpectedly closed (783 bytes received so far)
[generator]
rsync error: unexplained error (code 255) at io.c(601) [generator=3.0.7]
I have the "KeepAlive Yes" option in the sshd_config file
rsync options used in the batch file are:
rsync -e ssh -avzxHS --numeric-ids --del --delete-excluded
--exclude-from "/home/cybercolloids/exclusions.txt" --exclude ".gvfs"
Looking at the log file the only thing that looks odd is that the
connection fails when transferring large image files - a few Mb
Any ideas?
Thanks
Kevin.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!