On Tue, Nov 22, 2011 at 8:22 AM, Eliot Moss
<address@hidden> 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@hiddenstrato.com/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@hiddenstrato.com/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.)
Best -- Eliot Moss