I have started to use RSYNC again to backup servers. One thing that has been a problem with my initial synchronization of data is the dreaded error,
Connection reset by peer
I believe that I have resolved this time out error by adding the following changes to the /etc/ssh/sshd_config file on the server that is making the connection to a remote host.
The ClientAliveInterval will to send data across the connection every five minutes.
I know that this is not a good method to use for very long. I will change this to use this method after my initial server copy is complete.
RSYNC server backup run on remote host
rsync -avz –delete –progress –exclude=/sys –exclude=/proc –rsh=’ssh -p22222′ firstname.lastname@example.org:/ /home/backup/eol/
scp -P 22222 cron/basia-rsync-key.pub email@example.com:/root/
rsync -avz –delete –progress –exclude=/sys –exclude=/proc –rsh=’ssh -p22222′ firstname.lastname@example.org:/ /userdata/backup/eol/