5bdb816b635bfb421a50cffde92206611aad115d
- Author
- Jean-Baptiste Alleaume <jbanety@gmail.com>
- Committer
- Jean-Baptiste Alleaume <jbanety@gmail.com>
- Date
Message
Add OpenStack Swift support
Diff
1diff --git a/duplicity-backup.conf.example b/duplicity-backup.conf.example
2index ef21eb46aaa0dd0b7b4b8c03d7d686755cedac77..7dccd0330863e5248c55e706bbd7a080eb98558e 100644
3--- a/duplicity-backup.conf.example
4+++ b/duplicity-backup.conf.example
5@@ -51,6 +51,13 @@ AWS_SECRET_ACCESS_KEY="foobar_aws_access_key"
6 GS_ACCESS_KEY_ID="foobar_gcs_key_id"
7 GS_SECRET_ACCESS_KEY="foobar_gcs_secret_id"
8
9+# OPENSTACK OBJECT STORAGE (SWIFT) INFORMATION
10+# Comment out these lines if you're not using OpenStack Object Storage (Swift)
11+SWIFT_USERNAME="foobar_swift_tenant:foobar_swift_username"
12+SWIFT_PASSWORD="foobar_swift_password"
13+SWIFT_AUTHURL="foobar_swift_authurl"
14+SWIFT_AUTHVERSION="2"
15+
16 # S3CMD INFORMATION
17 # Most people don't need this, but in some cases
18 # you may want to specify a custom configuration file
19@@ -132,6 +139,7 @@ DEST="s3+http://foobar-backup-bucket/backup-folder/"
20 #DEST="imap[s]://user[:password]@host.com[/from_address_prefix]"
21 #DEST="webdav[s]://user[:password]@other.host[:port]/some_dir"
22 #DEST="gdocs://foobar_google_account/some_dir"
23+#DEST="swift://foobar_swift_container/some_dir"
24
25 # DESTINATION BACKEND PASSWORD
26 # Instead of setting the password needed for the backup destination in the
27diff --git a/duplicity-backup.sh b/duplicity-backup.sh
28index 4fc04ce2c41107a7bb257182f705057e821c975f..f8aeb6f925a686ea33b0c4b7524fcf2290d34c20 100755
29--- a/duplicity-backup.sh
30+++ b/duplicity-backup.sh
31@@ -173,6 +173,10 @@ export AWS_ACCESS_KEY_ID
32 export AWS_SECRET_ACCESS_KEY
33 export GS_ACCESS_KEY_ID
34 export GS_SECRET_ACCESS_KEY
35+export SWIFT_USERNAME
36+export SWIFT_PASSWORD
37+export SWIFT_AUTHURL
38+export SWIFT_AUTHVERSION
39 export PASSPHRASE
40 export SIGN_PASSPHRASE
41 if [[ -n "$FTP_PASSWORD" ]]; then