Tag Archives: duplicity

Full backup with Duplicity and DropBox

Some days ago I needed a dirty full backup of a VM, a nice solution that I’ve found out is to install duplicity and back it up via DropBox.

In order to do that first we need to install duplicity and DropBox Python SDK vi pip:

apt-get install -y python-pip duplicity
pip install dropbox
duplicity full / dpbx:///test --exclude=/sys --exclude=/dev --exclude=/proc --exclude=/run

A few notes to take into account:

* We need to approve duplicity via DropBox, an oAuth link will prompted during execution.

* If it doesn’t work and “NameError: global name ‘rest’ is not defined” shows up, please apply this patch.

* If test path is not found and this error show ups: “ErrorResponse: [404] u”Path ‘/test’ not found”
It means that you have to create a test directory in Dropbox inside /Apps/duplicity path, otherwise duplicity won’t find where to store our data.