Package duplicity :: Package backends :: Module giobackend :: Class GIOBackend
[hide private]
[frames] | no frames]

Class GIOBackend

source code


Use this backend when saving to a GIO URL. This is a bit of a meta-backend, in that it can handle multiple schemas. URLs look like schema://user@server/path.

Instance Methods [hide private]
 
__init__(self, parsed_url) source code
 
done_with_mount(self, fileobj, result, loop) source code
 
handle_error(self, raise_error, e, op, file1=None, file2=None) source code
 
copy_progress(self, *args, **kwargs) source code
 
copy_file(self, op, source, target, raise_errors=False) source code
 
put(self, source_path, remote_filename=None)
Copy file to remote
source code
 
get(self, filename, local_path)
Get file and put in local_path (Path object)
source code
 
list(self, raise_errors=False)
List files in that directory
source code
 
delete(self, filename_list, raise_errors=False)
Delete all files in filename list
source code
 
_query_file_info(self, filename, raise_errors=False)
Query attributes on filename
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 
Overrides: backend.Backend.__init__

copy_file(self, op, source, target, raise_errors=False)

source code 
Decorators:
  • @retry

put(self, source_path, remote_filename=None)

source code 

Copy file to remote

Overrides: backend.Backend.put

get(self, filename, local_path)

source code 

Get file and put in local_path (Path object)

Overrides: backend.Backend.get

list(self, raise_errors=False)

source code 

List files in that directory

Decorators:
  • @retry
Overrides: backend.Backend.list

delete(self, filename_list, raise_errors=False)

source code 

Delete all files in filename list

Decorators:
  • @retry
Overrides: backend.Backend.delete

_query_file_info(self, filename, raise_errors=False)

source code 

Query attributes on filename

Decorators:
  • @retry