View Single Post
Posts: 38 | Thanked: 3 times | Joined on Dec 2007 @ UK
#17
Originally Posted by mrklaw View Post
I'd love to see some sample scripts to accomplish this. I want to implement a similar backup system using rsync.
The cleaver stuff is really just one very long rsync command, e.g.
Code:
/usr/bin/rsync --bwlimit=512 -az --log-format=%f --numeric-ids --delete --rsh=ssh --stats --exclude-from=/backup/scripts/libs/host.example.com.exclude --link-dest=/backup/backups/host.example.com/2008-03-05-01 host.example.com:/ /backup/backups/host.example.com/2008-03-06-01
I actually blogged about it a while back if your interested (I really must finish building my website! )

All the scripting is just the checking that commands executed correctly and building up the above command.

I hope that helps.
 

The Following User Says Thank You to dogsbody For This Useful Post: