From 491b0455991f4291802b6475cbf0b7b8d462c8ba Mon Sep 17 00:00:00 2001 From: Christopher Sam Date: Wed, 16 Mar 2016 18:01:49 +0530 Subject: [PATCH 1/2] Add storage class option for AWS S3 to specify storage class to be used --- duplicity-backup.conf.example | 10 ++++++++++ duplicity-backup.sh | 1 + 2 files changed, 11 insertions(+) diff --git a/duplicity-backup.conf.example b/duplicity-backup.conf.example index 3018511..b53636e 100644 --- a/duplicity-backup.conf.example +++ b/duplicity-backup.conf.example @@ -138,6 +138,16 @@ DEST="s3+http://foobar-backup-bucket/backup-folder/" # #AWS_ACCESS_KEY_ID="foobar_aws_key_id" #AWS_SECRET_ACCESS_KEY="foobar_aws_access_key" + +# ------------------------------------------------------------------------------ +# SET STORAGE CLASS for AWS +# ------------------------------------------------------------------------------ +# The defaulct storage class is STANDARD STORAGE. You can comment this option if +# want to go with standard. The other storage options are --s3-use-ia and --s3-use-rrs. +# Note: --s3-use-ia option is supported only in duplicity version greater than 0.7.06 + +#STORAGECLASS="--s3-use-ia" + # # S3CMD INFORMATION # Most people don't need this, but in some cases diff --git a/duplicity-backup.sh b/duplicity-backup.sh index d36ea7e..32f3513 100755 --- a/duplicity-backup.sh +++ b/duplicity-backup.sh @@ -566,6 +566,7 @@ duplicity_backup() { { eval ${ECHO} ${DUPLICITY} ${OPTION} ${VERBOSITY} ${STATIC_OPTIONS} \ + ${STORAGECLASS} \ ${ENCRYPT} \ ${EXCLUDE} \ ${INCLUDE} \ From 454d2781e84b311d272b0b78ea9726a70bd5ff54 Mon Sep 17 00:00:00 2001 From: zertrin Date: Thu, 24 Mar 2016 21:12:17 +0100 Subject: [PATCH 2/2] minor changes to the pull request before merging --- duplicity-backup.conf.example | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/duplicity-backup.conf.example b/duplicity-backup.conf.example index b53636e..d675957 100644 --- a/duplicity-backup.conf.example +++ b/duplicity-backup.conf.example @@ -138,16 +138,13 @@ DEST="s3+http://foobar-backup-bucket/backup-folder/" # #AWS_ACCESS_KEY_ID="foobar_aws_key_id" #AWS_SECRET_ACCESS_KEY="foobar_aws_access_key" - -# ------------------------------------------------------------------------------ +# # SET STORAGE CLASS for AWS -# ------------------------------------------------------------------------------ -# The defaulct storage class is STANDARD STORAGE. You can comment this option if +# The default storage class is STANDARD STORAGE. You can comment this option if # want to go with standard. The other storage options are --s3-use-ia and --s3-use-rrs. # Note: --s3-use-ia option is supported only in duplicity version greater than 0.7.06 - +# #STORAGECLASS="--s3-use-ia" - # # S3CMD INFORMATION # Most people don't need this, but in some cases