Package duplicity :: Package backends :: Module localbackend :: Class LocalBackend
[hide private]
[frames] | no frames]

Class LocalBackend

source code


Use this backend when saving to local disk

Urls look like file://testfiles/output. Relative to root can be gotten with extra slash (file:///usr/local).

Instance Methods [hide private]
 
__init__(self, parsed_url) source code
 
handle_error(self, e, op, file1=None, file2=None) source code
 
move(self, source_path, remote_filename=None)
Move source_path (Path object) to remote_filename (string)
source code
 
put(self, source_path, remote_filename=None, rename_instead=False)
Transfer source_path (Path object) to remote_filename (string)
source code
 
get(self, filename, local_path)
Get file and put in local_path (Path object)
source code
 
list(self)
List files in that directory
source code
 
delete(self, filename_list)
Delete all files in filename list
source code
 
_query_file_info(self, filename)
Query attributes on filename
source code

Inherited from backend.Backend: close, get_data, get_fileobj_read, get_fileobj_write, get_password, 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 
Overrides: backend.Backend.__init__

move(self, source_path, remote_filename=None)

source code 

Move source_path (Path object) to remote_filename (string)

Same as put(), but unlinks source_path in the process. This allows the local backend to do this more efficiently using rename.

Overrides: backend.Backend.move
(inherited documentation)

put(self, source_path, remote_filename=None, rename_instead=False)

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, filename, local_path)

source code 

Get file and put in local_path (Path object)

Overrides: backend.Backend.get

list(self)

source code 

List files in that directory

Overrides: backend.Backend.list

delete(self, filename_list)

source code 

Delete all files in filename list

Overrides: backend.Backend.delete