Package duplicity :: Package backends :: Module sshbackend :: Class SSHBackend
[hide private]
[frames] | no frames]

Class SSHBackend

source code


This backend copies files using scp. List not supported

Instance Methods [hide private]
 
__init__(self, parsed_url)
scpBackend initializer
source code
 
run_scp_command(self, commandline)
Run an scp command, responding to password prompts
source code
 
run_sftp_command(self, commandline, commands)
Run an sftp command, responding to password prompts, passing commands from list
source code
 
put(self, source_path, remote_filename=None)
Transfer source_path (Path object) to remote_filename (string)
source code
 
put_sftp(self, source_path, remote_filename=None)
Use sftp to copy source_dir/filename to remote computer
source code
 
put_scp(self, source_path, remote_filename=None)
Use scp to copy source_dir/filename to remote computer
source code
 
get(self, remote_filename, local_path)
Retrieve remote_filename and place in local_path
source code
 
get_sftp(self, remote_filename, local_path)
Use sftp to get a remote file
source code
 
get_scp(self, remote_filename, local_path)
Use scp to get a remote file
source code
 
list(self)
List files available for scp
source code
 
delete(self, filename_list)
Runs sftp rm to delete files.
source code

Inherited from backend.Backend: close, get_data, get_fileobj_read, get_fileobj_write, get_password, move, munge_password, popen, popen_persist, put_data, query_info, run_command, run_command_persist, subprocess_popen, subprocess_popen_persist

Inherited from backend.Backend (private): _subprocess_popen

Class Variables [hide private]

Inherited from backend.Backend: popen_persist_breaks, use_getpass

Method Details [hide private]

__init__(self, parsed_url)
(Constructor)

source code 

scpBackend initializer

Overrides: backend.Backend.__init__

put(self, source_path, remote_filename=None)

source code 

Transfer source_path (Path object) to remote_filename (string)

If remote_filename is None, get the filename from the last path component of pathname.

Overrides: backend.Backend.put
(inherited documentation)

get(self, remote_filename, local_path)

source code 

Retrieve remote_filename and place in local_path

Overrides: backend.Backend.get
(inherited documentation)

list(self)

source code 

List files available for scp

Note that this command can get confused when dealing with files with newlines in them, as the embedded newlines cannot be distinguished from the file boundaries.

Overrides: backend.Backend.list

delete(self, filename_list)

source code 

Runs sftp rm to delete files. Files must not require quoting.

Overrides: backend.Backend.delete