duplicity.backends.megav2backend module
- class duplicity.backends.megav2backend.Megav2Backend(parsed_url)[source]
Bases:
Backend
Backend for MEGA.nz cloud storage, only one that works for accounts created since Nov. 2018 See https://github.com/megous/megatools/issues/411 for more details
This MEGA backend resorts to official tools (MEGAcmd) as available at https://mega.nz/cmd MEGAcmd works through a single binary called “mega-cmd”, which talks to a backend server “mega-cmd-server”, which keeps state (for example, persisting a session). Multiple “mega-*” shell wrappers (ie. “mega-ls”) exist as the user interface to “mega-cmd” and MEGA API The full MEGAcmd User Guide can be found in the software’s GitHub page below : https://github.com/meganz/MEGAcmd/blob/master/UserGuide.md
- _check_binary_exists(cmd)[source]
Checks that a specified command exists in the running user command path
- _put(source_path, remote_filename)[source]
Uploads file to the specified remote folder (tries to delete it first to make sure the new one can be uploaded)
- folder_contents(files_only=False)[source]
Lists contents of a remote MEGA path, optionally ignoring subdirectories