Alexander Zangerl schrieb am 31.12.2011 05:50: > basically the whole sftp/scp backend is a ridiculously brittle mess > (forks new sftp/scp clients way too often, then uses expect and a horrible > lot of guesswork to interact with them) and there is no hope of this code > ever covering all corner cases (parsing /error texts/ to figure > out the nature of a problem? sorry, but that's a really bad idea...).
I see. I know 'expect' from other programming-languages and I really understand, that it is not easy to handle ... ;) > it's attached if you want to try it; simply save it as > /usr/lib/pythonYOURVERSION/dist-packages/duplicity/backends/sshbackend.py > and remove sshbackend.pyc (in the same dir). I have tried it and get a "UnsupportedBackendScheme" error. (see the attached log). I have tried 'ssh', 'sftp' and 'scp' as the protocol. I used the vars 'TARGET_USER' and 'TARGET_PASS' to set user and password in the config-file. My current workaround is to change line 287 in sshbackend.py (current testing-version) to: mkdir_commands += ["cd \"%s\"" % (d)] It's a little bit (or a little bit more ;)) quick'n dirty, but it works for me. Thanks for your work!! Thomas
signature.asc
Description: OpenPGP digital signature