bd0ae7859c7e709bcf7c43caf4d8ff5369b172ab
Dockerized duplicity backup tool.
Usage
Backup to Google Drive example
Google Drive offers 15GB for free.
Set up:
-
Follow notes on Pydrive Backend to generate a P12 credential file (call it
pydriveprivatekey.p12) and note also the associated service account email generated (e.g.duplicity@developer.gserviceaccount.com). -
Convert P12 to PEM:
$ docker run --rm -i --user $UID -v $PWD/pydriveprivatekey.p12:/pydriveprivatekey.p12:ro wernight/duplicity openssl pkcs12 -in /pydriveprivatekey.p12 -nodes -nocerts > pydriveprivatekey.pem Enter Import Password: notasecret
Now you're ready to perform a backup:
$ docker run --rm --user $UID -v /:/data:ro -e PASSPHRASE=P4ssw0rd -e GOOGLE_DRIVE_ACCOUNT_KEY=$(cat pydriveprivatekey.pem) duplicity duplicity /data pydrive://duplicity@developer.gserviceaccount.com/some_dir
To restore, you'll need:
- Regenerate a PEM file (or keep it somewhere)
- The
PASSPHRASEyou've used.
Backup to Google Cloud Storage example
Google Cloud Storage nearline costs about $0.01/GB/Month.
TODO see note on Google Cloud Storage.
Backup via rsync example
TODO
More help
See also duplicity man page and you can also do:
$ docker run --rm wernight/duplicity duplicity --help
Description
Languages
Dockerfile
92.5%
Shell
7.5%