Add support for custom endpoint_url for boto3+s3

Asked by Gaël Bréard on 2020-04-27

Would it be possible to add support of URL like this : boto3+s3://<non_amazon_endpoint>/<bucket>/<path> ?

hacked line 93 of s3_boto3_backend.py like this and it seems to work :

self.s3 = boto3.resource(u's3',endpoint_url='https://oss.eu-west-0.prod-cloud-ocb.orange-business.com')

Question information

Language:
English Edit question
Status:
Answered
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Last query:
2020-04-27
Last reply:
2020-04-27
edso (ed.so) said : #1

On 27.04.2020 15:05, Gaël Bréard wrote:
> New question #690245 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/690245
>
> Would it be possible to add support of URL like this : boto3+s3://<non_amazon_endpoint>/<bucket>/<path> ?
>
> hacked line 93 of s3_boto3_backend.py like this and it seems to work :
>
> self.s3 = boto3.resource(u's3',endpoint_url='https://oss.eu-west-0.prod-cloud-ocb.orange-business.com')
>
>

hey Gaël,

sure go ahead. check other backends on how to parse the hostname from the url and set endpoint_url accordingly. after editing s3_boto3_backend.py don't forget to update the manpage 'bin/duplicity.1' .

the full source tree can be found here https://bazaar.launchpad.net/~duplicity-team/duplicity/0.8-series/files.

thanks.. ede/duply.net

Can you help with this problem?

Provide an answer of your own, or ask Gaël Bréard for more information if necessary.

To post a message you must log in.