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} \