duplicity.backends.megabackend module

class duplicity.backends.megabackend.MegaBackend(parsed_url)[source]

Bases: Backend

Connect to remote store using Mega.co.nz API

__init__(parsed_url)[source]
_check_binary_exists(cmd)[source]

checks that a specified command exists in the current path

_delete(filename)[source]

deletes remote

_get(remote_filename, local_path)[source]

downloads file from Mega

_list()[source]

list files in the backup folder

_makedir(path)[source]

creates a remote directory

_makedir_recursive(path)[source]

creates a remote directory (recursively the whole path), ingores errors

_put(source_path, remote_filename)[source]

uploads file to Mega (deletes it first, to ensure it does not exist)

delete(remote_file)[source]
download(remote_file, local_file)[source]
folder_contents(files_only=False)[source]

lists contents of a folder, optionally ignoring subdirectories

upload(local_file, remote_file)[source]