Traffic monetization

rSync Backup Script [kichimi.co.uk]
 

rSync Backup Script

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)

 
rsyncbackup.txt · Last modified: 2011/01/24 16:01 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki