From 4db0210a18a98702b61268d83ba0a01e0dbcbb07 Mon Sep 17 00:00:00 2001 From: Werner Beroux Date: Fri, 22 Jan 2016 16:38:29 +0100 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index e1a0b24..784a628 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,22 @@ Dockerize [duplicity](http://duplicity.nongnu.org/) backup tool. ### Usage +#### Backup via rsync + +**TODO** + +#### Backup to Google Drive Example + +**WORK IN PROGRESS** + +First follow notes [on Pydrive Backend](http://duplicity.nongnu.org/duplicity.1.html#sect20) 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`). + + $ 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 + $ 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 + +#### Help + +See also [duplicity man](http://duplicity.nongnu.org/duplicity.1.html) page and you can also do: + $ docker run --rm wernight/duplicity duplicity --help