duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] problem with ssh backend in 0.6.16


From: edgar . soldin
Subject: Re: [Duplicity-talk] problem with ssh backend in 0.6.16
Date: Tue, 22 Nov 2011 15:30:05 +0100
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 22.11.2011 15:22, Eliot Moss wrote:
> On 11/22/2011 9:16 AM, Kilian Lackhove wrote:
>> Hello,
>>
>> ive just upgraded to duplicity 0.6.16 which broke the ssh backend for me:
>>
>> $ /usr/local/bin$ /usr/bin/duplicity remove-older-than 1M -v 9
>> --encrypt-key yyy --sign-key yyy
>> ssh://address@hidden/users/xxx/duplicity/etc/
>>
>> (snip)
>> ================================================================================
>> duplicity 0.6.16 (October 16, 2011)
>> Args: /usr/bin/duplicity remove-older-than 1M -v 9 --encrypt-key yyy
>> --sign-key yyy ssh://address@hidden/users/xxx/duplicity/etc/
>> Linux rechenknecht 3.1.1-1-ck #1 SMP PREEMPT Sat Nov 12 06:26:40 EST
>> 2011 x86_64 AMD Athlon(tm) II X3 440 Processor
>> /usr/bin/python2 2.7.2 (default, Jun 29 2011, 11:10:00)
>> [GCC 4.6.1]
>> ================================================================================
>> Running 'sftp  -oServerAliveInterval=15 -oServerAliveCountMax=2
>> address@hidden' (attempt #1)
>> State = sftp, Before = 'Connected to sftp.hidrive.strato.com.'
>> sftp command: 'mkdir "users"'
>> State = sftp, Before = 'mkdir "users"
>> Couldn't create directory:'
>> Invalid SSH password
>>
>> It seems like duplicity wants to create the dir "users" even though it
>> already exists. As a workaround i changed line 287 in sshbackend.py
>> from mkdir_commands += ["mkdir \"%s\"" % (d)] + ["cd \"%s\"" % (d)] to
>> mkdir_commands += ["cd \"%s\"" % (d)] which solved the problem for me.
>> Of course that breaks the creating of non-existent dirs, so dont
>> consider  this a patch ;)
> 
> Maybe putting -p in the flags to mkdir? (Means: no error if the directory
> exists, *and* create parent directories on the path if they do not already
> exist.)
> 

sftp's mkdir command does not support -p see
http://www.openbsd.org/cgi-bin/man.cgi?query=sftp&sektion=1

i wonder why it breaks at all. especially the error
"Invalid SSH password"
is suspicious.

can you reproduce it all the time?

..ede/duply.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]