====== rdiff-backup ======
rdiff-backup is a script, written in python that backs up one directory to another.
=== Backing Up ===
Simple backup
rdiff-backup user@server.com::/var/www/localhost server.com
Ignore .git directory and display files being archived:
rdiff-backup -v5 --exclude '**.git' /var/www/localhost/htdocs /var/storage/rdiff/server.com
=== Restoring ===
rdiff -r 7D /var/source /var/dest
=== Deleting old copies ===
==== Server Configuration ====
**Initial archive**
rdiff-backup -v5 --exclude '**.git' /var/www/localhost/htdocs /var/storage/rdiff/server.com
**Local cron job**
0 2 * * * rdiff-backup --exclude '**.git' /var/www/localhost/htdocs /var/storage/rdiff/server.com &> /dev/null
**Remote cron job**
0 2 * * * rdiff-backup --exclude '**.git' server.com::/var/www/localhost/htdocs /var/storage/rdiff/server.com &> /dev/null