← Back to team overview

duplicity-team team mailing list archive

[Merge] lp:~brandon753-ba/duplicity/aws-glacier into lp:duplicity

 

edso has proposed merging lp:~brandon753-ba/duplicity/aws-glacier into lp:duplicity.

Commit message:
Adds support for for a command line option to store data on AWS S3 Glacier.

Requested reviews:
  edso (ed.so)

For more details, see:
https://code.launchpad.net/~brandon753-ba/duplicity/aws-glacier/+merge/364306
-- 
Your team duplicity-team is subscribed to branch lp:duplicity.
=== modified file 'duplicity/backends/_boto_single.py'
--- duplicity/backends/_boto_single.py	2019-01-25 17:08:40 +0000
+++ duplicity/backends/_boto_single.py	2019-03-12 08:40:13 +0000
@@ -226,6 +226,8 @@
             storage_class = u'STANDARD_IA'
         elif globals.s3_use_onezone_ia:
             storage_class = u'ONEZONE_IA'
+        elif globals.s3_use_glacier and "manifest.gpg" not in remote_filename:
+            storage_class = u'GLACIER'
         else:
             storage_class = u'STANDARD'
         log.Info(u"Uploading %s/%s to %s Storage" % (self.straight_url, remote_filename, storage_class))

=== modified file 'duplicity/commandline.py'
--- duplicity/commandline.py	2019-01-25 17:08:40 +0000
+++ duplicity/commandline.py	2019-03-12 08:40:13 +0000
@@ -540,6 +540,9 @@
     # Whether to use S3 Infrequent Access Storage
     parser.add_option(u"--s3-use-ia", action=u"store_true")
 
+    # Whether to use S3 Glacier Storage
+    parser.add_option(u"--s3-use-glacier", action=u"store_true")
+
     # Whether to use S3 One Zone Infrequent Access Storage
     parser.add_option(u"--s3-use-onezone-ia", action=u"store_true")
 

=== modified file 'duplicity/globals.py'
--- duplicity/globals.py	2019-01-25 17:08:40 +0000
+++ duplicity/globals.py	2019-03-12 08:40:13 +0000
@@ -197,6 +197,9 @@
 # Whether to use S3 Infrequent Access Storage
 s3_use_ia = False
 
+# Whether to use S3 Glacier Storage
+s3_use_glacier = False
+
 # Whether to use S3 One Zone Infrequent Access Storage
 s3_use_onezone_ia = False
 


Follow ups