sftp备份与重复失败

我在debian wheezy上使用了双重性,它以0.6.18版本作为标准包。 我也尝试从wheezy-backports版本0.6.24。

我想使用sftp作为后端,但是如果我运行:

duplicity --full-if-older-than 1M --exclude /run --exclude /proc --exclude /lost+found --exclude /dev --exclude /sys --exclude /mnt / sftp://$FTP_USER"@"$FTP_HOSTNAME/myserver 

我得到以下错误:

 ssh: Exception: Incompatible ssh peer (no acceptable kex algorithm) ssh: Traceback (most recent call last): ssh: File "/usr/lib/python2.7/dist-packages/paramiko/transport.py", line 1546, in run ssh: self._handler_table[ptype](self, m) ssh: File "/usr/lib/python2.7/dist-packages/paramiko/transport.py", line 1618, in _negotiate_keys ssh: self._parse_kex_init(m) ssh: File "/usr/lib/python2.7/dist-packages/paramiko/transport.py", line 1731, in _parse_kex_init ssh: raise SSHException('Incompatible ssh peer (no acceptable kex algorithm)') ssh: SSHException: Incompatible ssh peer (no acceptable kex algorithm) ssh: 

我读过,这可能与paramiko后端是用作默认的,但是当我改变它pexpect(… pexpect + sftp:// …)我得到这个错误:

 UnsupportedBackendScheme: scheme not supported in url: pexpect+sftp:// 

这个问题怎么解决?

尝试改变命令

 duplicity /source-dir pexpect+sftp://backup.server.com/storage 

 duplicity /source-dir --ssh-backend=pexpect sftp://backup.server.com/storage 

在Debian jessie 8.7上testing了0.6.24

男子口交:

–ssh-backend后端

允许显式select一个ssh后端。 默认为paramiko。

或者,你可以selectpexpect。

该计划的“pexpect + sftp://”是在后续版本中引入的。