Duply is just awesome.
apt-get install duplicity
Download Duply. Extract and copy
/usr/bin. Make sure it has execute permissions for the user you plan to run your backups with (e.g. root).
Make a directory for the configuration files.
Create a new profile.
duply offsite create
Make sure Duply created a conf file in
Create a GPG key.
While logged in via SSH, key generation could fail (Not enough random bytes available). To remedy this, open another shell and install
apt-get install rng-tools
rngd -r /dev/urandom
If successful, you should see an output like the following:
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 525D8AF3 marked as ultimately trusted
public and secret key created and signed.
Make a note of the key number (here:
Make sure the key was added to the keystore:
Edit the config file:
Fill in the GPG key number and the passphrase.
Set up cronjob:
27 4 1 * * root /usr/bin/duply offsite backup_verify_purge --force 23 3 * * * root /usr/bin/duply offsite backup
This guide was largely lifted from a tutorial found on trick77.com and a couple of other places.