Backup with duplicity
From HostThyself
duplicity is a tool that provides encrypted backup using rsync algorithm. This allows you to store backup in 3rd party space securely.
[edit] Setup duplicity in CentOS 5
Get latest rpm from http://download.savannah.gnu.org/releases-noredirect/duplicity/
Install duplicity
rpm -i duplicity-0.6.00-0.fdr.6.i386.rpm
If dependency on librsync is required, get from ftp://download.fedora.redhat.com/pub/epel/5/i386/
Install librsync
[edit] Backup with duplicity
We will use scp to backup file to remote server
To set up a cron job to regularly backup the files, first setup a ssh public key in the remote server. See "How to set up a ssh key login" for details on how to do this.
Setup gpg
gpg --gen-key
Follows the prompt to generate the key. Default values works fine.
List the key
gpg --list-keys /home/username/.gnupg/pubring.gpg ----------------------------- pub 1024D/ABCD1234 2009-06-20 uid User Name <username@example.com> sub 2048g/EFGH5678 2009-06-20
Note the key id ABCD1234 in this case.
Backup with duplicity
duplicity --encrypt-key ABCD1234 /home/me scp://uname@other.host//usr/backup