aboutsummaryrefslogtreecommitdiff
path: root/duply
diff options
context:
space:
mode:
Diffstat (limited to 'duply')
-rw-r--r--duply/.duply/seb_music/conf2
-rwxr-xr-xduply/scripts/duplicity/gen_config_remote.sh74
2 files changed, 73 insertions, 3 deletions
diff --git a/duply/.duply/seb_music/conf b/duply/.duply/seb_music/conf
index d1d726b..37cbdcd 100644
--- a/duply/.duply/seb_music/conf
+++ b/duply/.duply/seb_music/conf
@@ -2,7 +2,7 @@
SOURCE='/home/sebastien/Musique'
# Storage directory
-export STORAGE_NAME="music"
+export STORAGE_NAME="seb_music"
export PCA_OS_REGION_NAME=GRA
export HOT_OS_REGION_NAME=GRA
diff --git a/duply/scripts/duplicity/gen_config_remote.sh b/duply/scripts/duplicity/gen_config_remote.sh
index 55f5a34..df02e90 100755
--- a/duply/scripts/duplicity/gen_config_remote.sh
+++ b/duply/scripts/duplicity/gen_config_remote.sh
@@ -40,7 +40,7 @@ envsubst > $1 << EOF
},
{
"name": "PCA_REGIONNAME",
- "value": "${PCA_OS_REGION_NAME}"
+ "value": "GRA"
}
],
"prefixes": ["cold_"]
@@ -75,7 +75,77 @@ envsubst > $1 << EOF
},
{
"name": "SWIFT_REGIONNAME",
- "value": "${HOT_OS_REGION_NAME}"
+ "value": "GRA"
+ }
+ ],
+ "prefixes": ["hot_"]
+ },
+ {
+ "description": "Cold storage Backup",
+ "url": "pca://${STORAGE_NAME}",
+ "env": [
+ {
+ "name": "PCA_AUTHURL",
+ "value": "${OS_AUTH_URL}"
+ },
+ {
+ "name": "PCA_AUTHVERSION",
+ "value": "${OS_IDENTITY_API_VERSION}"
+ },
+ {
+ "name": "PCA_PROJECT_DOMAIN_NAME",
+ "value": "Default"
+ },
+ {
+ "name": "PCA_TENANTID",
+ "value": "${OS_TENANT_ID}"
+ },
+ {
+ "name": "PCA_USERNAME",
+ "value": "${OS_USERNAME}"
+ },
+ {
+ "name": "PCA_PASSWORD",
+ "value": "${OS_PASSWORD}"
+ },
+ {
+ "name": "PCA_REGIONNAME",
+ "value": "WAW"
+ }
+ ],
+ "prefixes": ["cold_"]
+ },
+ {
+ "description": "Hot storage Backup",
+ "url": "swift://${STORAGE_NAME}_indexes",
+ "env": [
+ {
+ "name": "SWIFT_AUTHURL",
+ "value": "${OS_AUTH_URL}"
+ },
+ {
+ "name": "SWIFT_AUTHVERSION",
+ "value": "${OS_IDENTITY_API_VERSION}"
+ },
+ {
+ "name": "SWIFT_PROJECT_DOMAIN_NAME",
+ "value": "${OS_PROJECT_DOMAIN_NAME}"
+ },
+ {
+ "name": "SWIFT_TENANTID",
+ "value": "${OS_TENANT_ID}"
+ },
+ {
+ "name": "SWIFT_USERNAME",
+ "value": "${OS_USERNAME}"
+ },
+ {
+ "name": "SWIFT_PASSWORD",
+ "value": "${OS_PASSWORD}"
+ },
+ {
+ "name": "SWIFT_REGIONNAME",
+ "value": "WAW"
}
],
"prefixes": ["hot_"]