Duplicity backup to Amazon S3 on Debian
I am using duplicity with duply to do PGP encrypted backups to Amazon S3. As there are enough guides around for the basic setup (i used Backup unter Linux mit duply), I won’t go into details of that.
However if you are planning to use the new EU (Frankfurt) location called eu-central-1 you will run into problems as this location only supports the V4 authentication. You might encounter the following error when using duply (even if the config worked on other locations before)
So what is the solution
This is a bit tricky, as the Debian packages are not up to date and you need to mix backports and unstable versions. To solve this you will need to upgrade your duplicity and boto framework packages as following:
duplicity needs version 0.7.02-1 This version is available within the
backportbranch of Debian. I used package pinning to get this package. You can easily find articles for this via Google, I found APT Pinning helpful. Be careful to understand pinning, as you might confuse APT with a wrong configuration. You should always use
sudo apt-cache policy [packagename]and the
-sparameter on upgrades first to check what will happen. Currently I am using duplicity 0.7.06-1~bpo8+1.
python-boto needs version 2.36.0 Previously this was only available via PyPi, however a newer version is now available in the
unstablebranch. Hence again you can install this via pinning. Currently I am using python-boto 2.40.0-1
duply did not need additional changes, I am using version 1.9.1-1 out of the regular stable branch.
- Linux (20),
- Boto 2.38.0 (1),
- Boto 2.40.0-1 (1),
- Debian Jessie (3),
- Debian Wheezy (1),
- Duplicity 0.7.02-1 (1),
- Duplicity 0.7.06-2~bpo8+1 (1),
- Duply 1.9.1-1 (1)