← Back to team overview

duplicity-team team mailing list archive

[Bug 387218] Re: Add SFTP-only backend

 

** Branch linked: lp:duplicity

-- 
Add SFTP-only backend
https://bugs.launchpad.net/bugs/387218
You received this bug notification because you are a member of
duplicity-team, which is subscribed to duplicity.

Status in duplicity - Bandwidth Efficient Encrypted Backup: Fix Committed

Bug description:
As of v0.6.0 duplicity does not have a pure SFTP backend, i.e. a backend that uses *only* the SFTP command to communicate with the backup host. The existing backends (SSH / SCP) use SFTP but also SCP. Using only SFTP is desired, because one may create a restricted shell in which SFTP can be run without shell (PTY) access. This is not possible with SCP.

The patch below addresses this issue, by adding a "sftp://"; scheme. The most important file (backends/sftpbackend.py) is a modification of sshbackend, but replaces all scp commands with their equivalent sftp ones.