jelevin
04-22-2007, 02:58 PM
I wanted to automate my site backup using rsync to my home network. I consider myself pretty experienced and actually use rsync on my home for daily backups.
As far as I can tell, despite some postings of Terra's scatterred around this forum to "just use rsync -essh" it is quite complicated to set this up as securely as possible to run from a home cron script.
I ended up following the excellent instructions at http://troy.jdmz.net/rsync/index.html as closely as I could.
The cron script I plan to run on one of my home machines looks like this:
#!/bin/bash
# Run this script to mirror sections of thelevins.net to local computer coconut
rsync -e "ssh -i /etc/cron.daily/coconut-myusername-rsync-key" -rtpzvv --delete myusername@mydomainname.net:/big/dom/xmydomainname/backups /home/data/backups/mydomainname.net
#
Setting this up requires knowledge of cron, ssh and rsync. I'm sure others would appreciate a step by step instruction including setting file permissions that work for the FQ environment.
Any help?
As far as I can tell, despite some postings of Terra's scatterred around this forum to "just use rsync -essh" it is quite complicated to set this up as securely as possible to run from a home cron script.
I ended up following the excellent instructions at http://troy.jdmz.net/rsync/index.html as closely as I could.
The cron script I plan to run on one of my home machines looks like this:
#!/bin/bash
# Run this script to mirror sections of thelevins.net to local computer coconut
rsync -e "ssh -i /etc/cron.daily/coconut-myusername-rsync-key" -rtpzvv --delete myusername@mydomainname.net:/big/dom/xmydomainname/backups /home/data/backups/mydomainname.net
#
Setting this up requires knowledge of cron, ssh and rsync. I'm sure others would appreciate a step by step instruction including setting file permissions that work for the FQ environment.
Any help?