Support all AWS regions
Hi!
Currently the design of S3 backend doesn't allow for using all available regions which is a bad thing. I reviewed the code and the changes needed to enable multiple regions are really minor.
Here is a minimal version of patch:
++++++
diff --git a/duplicity/
index 0fb40b2..b3e8313 100644
--- a/duplicity/
+++ b/duplicity/
@@ -165,6 +165,13 @@ class BotoBackend(
if globals.
+ elif globals.s3_region:
+ if globals.s3_region == "eu-west-1":
+ self.my_location = "EU"
+ elif globals.s3_region == "us-east-1":
+ self.my_location = ""
+ else:
+ self.my_location = globals.s3_region
else:
diff --git a/duplicity/
index 45909ba..ce89a1e 100644
--- a/duplicity/
+++ b/duplicity/
@@ -527,6 +527,7 @@ def parse_cmdline_
# Whether to create European buckets (sorry, hard-coded to only
# support european for now).
parser.
+ parser.
# Whether to use S3 Reduced Redudancy Storage
parser.
diff --git a/duplicity/
index 5882a70..d364fcb 100644
--- a/duplicity/
+++ b/duplicity/
@@ -183,6 +183,7 @@ s3_use_new_style = False
# Whether to create European buckets (sorry, hard-coded to only
# support european for now).
s3_european_
+s3_region = ""
# File owner uid keeps number from tar file. Like same option in GNU tar.
numeric_owner = False
++++++
This is basically all what is needed. And then it can be used like that:
/usr/local/
Is it possible to include it in duplicity? For now I will use patched version but would be cool if this can be in upstream duplicity!
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Duplicity Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: