forked from aawsome/restic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
s3: add bucket-lookup parameter to select path or dns style bucket lo…
…okup This is to enable restic working with Alibaba cloud Fixes restic#2528
- Loading branch information
1 parent
09cda6f
commit 94d56a4
Showing
4 changed files
with
81 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Enhancement: support Alibaba/Aliyun OSS with S3 backend | ||
|
||
We've added a new flag to the s3 backend `s3.bucket-lookup` which can | ||
be set to these 3 values: | ||
|
||
- `auto` - existing behaviour | ||
- `dns` - use DNS style bucket access | ||
- `path` - use path style bucket access | ||
|
||
To make the s3 backend work with Alibaba/Aliyun OSS you must set | ||
`s3.bucket-lookup` to `dns` and set the `s3.region` parameter. For | ||
example: | ||
|
||
restic -o s3.bucket-lookup=dns -o s3.region=oss-eu-west-1 -r s3:https://oss-eu-west-1.aliyuncs.com/bucketname init | ||
|
||
Note that s3.region must be set otherwise the minio SDK tries to look | ||
it up and it seems that Alibaba doesn't support that properly. | ||
|
||
https://github.com/restic/restic/issues/2528 | ||
https://github.com/restic/restic/pull/2535 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters