duplicity.backends.megabackend module

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

Bases: Backend

Connect to remote store using Mega.co.nz API


checks that a specified command exists in the current path


deletes remote

_get(remote_filename, local_path)[source]

downloads file from Mega


list files in the backup folder


creates a remote directory


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)

download(remote_file, local_file)[source]

lists contents of a folder, optionally ignoring subdirectories

upload(local_file, remote_file)[source]