Very easy rSync Backup. Doesn't make copies, just single update.
#!/bin/bash RSYNC=/usr/bin/rsync SSH=/usr/bin/ssh KEY=/backup/exampleserver.key RUSER=root RHOST=exampleserver.co.uk RPATH=/home/ LPATH=/backup/remote/home/ $RSYNC -alvzr --delete -e --progress "$SSH -i $KEY" $RUSER@$RHOST:$RPATH $LPATH # extra stuff you might need # --exclude "BACKUP/" --exclude "mysql/" # for different ports, change # "$SSH -i $KEY" to "$SSH -i $KEY -p 2222" # if you've got IdentityFile set up, change it to "$SSH"; I think!
Thrown together by (Frag)