← Back to team overview

duplicity-team team mailing list archive

Re: [Question #690245]: Add support for custom endpoint_url for boto3+s3

 

Question #690245 on Duplicity changed:
https://answers.launchpad.net/duplicity/+question/690245

    Status: Open => Answered

edso proposed the following answer:
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

-- 
You received this question notification because your team duplicity-team
is an answer contact for Duplicity.