After comparing different options (NAS, Amazon S3) I decided to go with the Amazon S3 Web service. Comparing the prices makes the Amazon S3 a way less expensive than a NAS system. Another argument for the Amazon S3 is the fact, that the backup isn't stored in the same building as the server lays. One drawback is that curious Amazon Administrator might have a look in the backed up emails. Therefore, I use Duplicity to transfer and encrypt the data.
Duplicity is a backup tool that uses GnuPG to encrypt and librsync to backup the data. It creates incremental backups, which lowers a lot the amount of data transfered to Amazon S3.
I started my "New Backup Adventure" by googling around and found this little How To with which I started.
Here a short explanation how I installed and configured the Backup on my Ubuntu server (be root or die!
):
Python-boto is used to let communicate duplicity to the Amazon S3.
Important: If you don't generate the key on the server itself, you have to sign the keys after importing. Otherwise, duplicity will throw a "broken pipe" error. To do them so:
|
#!/bin/sh
export PASSPHRASE=Enter here the GPG Passphrase
export AWS_ACCESS_KEY_ID=Enter here the Access Key of the Amazon S3
export AWS_SECRET_ACCESS_KEY=Enter here the Secret Access Key
duplicity remove-older-than 3M --encrypt-key=GPGKEYNAME --sign-key= GPGKEYNAME 3+http://S3BucketName
duplicity --encrypt-key=GPGKEYNAME --sign-key= GPGKEYNAME --include=/some/file/you/like/to/backup --exclude='**' / s3+http://S3BucketName
export PASSPHRASE=
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
|
Et voila, you got a Duplicity - Amazon S3 Backup! 