Package duplicity :: Package backends :: Module botobackend :: Class BotoBackend
[hide private]
[frames] | no frames]

Class BotoBackend

source code


Backend for Amazon's Simple Storage System, (aka Amazon S3), though the use of the boto module, (http://code.google.com/p/boto/).

To make use of this backend you must set aws_access_key_id and aws_secret_access_key in your ~/.boto or /etc/boto.cfg with your Amazon Web Services key id and secret respectively. Alternatively you can export the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

Instance Methods [hide private]
 
__init__(self, parsed_url) source code
 
put(self, source_path, remote_filename=None)
Transfer source_path (Path object) to remote_filename (string)
source code
 
get(self, remote_filename, local_path)
Retrieve remote_filename and place in local_path
source code
 
list(self)
Return list of filenames (strings) present in backend
source code
 
delete(self, filename_list)
Delete each filename in filename_list, in order if possible.
source code

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

Method Details [hide private]

__init__(self, parsed_url)
(Constructor)

source code 
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 
Return list of filenames (strings) present in backend
Overrides: backend.Backend.list
(inherited documentation)

delete(self, filename_list)

source code 
Delete each filename in filename_list, in order if possible.
Overrides: backend.Backend.delete
(inherited documentation)