duplicity behind a proxy

Asked by Laurent GAUTROT on 2011-10-06

How can I run duplicity for DAV backups (webdavs, in fact) behind a proxy ?

http_proxy environment variable does not seem to be of any use.

Question information

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

seems like
http://bazaar.launchpad.net/~duplicity-team/duplicity/0.6-series/view/head:/duplicity/backends/webdavbackend.py
would have to switch to urllib for that.

your welcome to have a take on that, if you want of course ;) .. ede/duply.net

On 06.10.2011 13:26, Kenneth Loafman wrote:
> For now, proxies are not supported. It's on the list of things to do.
>
> ...Ken
>
> On Thu, Oct 6, 2011 at 4:20 AM, Laurent GAUTROT <<email address hidden> <mailto:<email address hidden>>> wrote:
>
> New question #173420 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/173420
>
> How can I run duplicity for DAV backups (webdavs, in fact) behind a proxy ?
>
> http_proxy environment variable does not seem to be of any use.
>
> --
> You received this question notification because you are a member of
> duplicity-team, which is an answer contact for Duplicity.
>

edso (ed.so) said : #2

probably urllib2 is the way to go, see

http://stackoverflow.com/questions/2018026/should-i-use-urllib-or-urllib2

ede/duply.net

Laurent GAUTROT (l-gautrot) said : #3

Read from "urllib2: the missing manual" [1]

 "Currently urllib2 does not support fetching of https locations through a proxy. This can be a problem."

So I guess it's a no go.

[1] http://www.voidspace.org.uk/python/articles/urllib2.shtml

edso (ed.so) said : #4

On 06.10.2011 15:14, Kenneth Loafman wrote:
> "Currently urllib2 does not support fetching of https locations through
> a proxy. This can be a problem."

even if, it is still an enhancement because all that's working now is working still plus at least proxy support for http.

but actually i can't imagine that https over proxy is still not working in recent versions of python. still, you might want to try for yourself first ;)

ede/duply.net

Can you help with this problem?

Provide an answer of your own, or ask Laurent GAUTROT for more information if necessary.

To post a message you must log in.