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: Kenneth Loafman
Subject: Re: [Duplicity-talk] problem with ssh backend in 0.6.16
Date: Tue, 22 Nov 2011 08:27:38 -0600

Elliot,

I'm confused... this process has been in place for ages, we just ignore the mkdir errors and go on.  Is this causing some other problems?

...Ken

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


_______________________________________________
Duplicity-talk mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/duplicity-talk


reply via email to

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