http://www.macresearch.org/tutorial_backups_with_launchd
Tutorial on how to have launchd automatically run scripts (such as rysnc) when USB devices are plugged in, automated backup when a USB drive is plugged in for example.
http://blog.arnaudlacour.com/2012/11/backing-up-to-usb-drive-when-plugged-in.html
Tutorial on how to set up OSX to automatically backup when a USB drive is plugged in. Neat.
http://s3sync.net/
S3sync and s3cmd are ruby interfaces to Amazon S3. S3cmd provides a command line interface to manage S3 buckets. S3sync provides a command line interface to copy data to and from S3.