megacopy [-n] [--no-progress] --local <path> --remote <remotepath> megacopy [-n] [--no-progress] --download --local <path> --remote <remotepath>
Sync remote and local directories. No files are ever overwritten or removed.
Default direction is to upload files to the cloud. If you want to download files, you have to add --download option.
-r <remotepath>, --remote <remotepath>
-l <path>, --local <path>
-d, --download
-n, --dryrun
--no-progress
-u <email>, --username <email>
-p <password>, --password <password>
--config <path>
--ignore-config-file
--no-ask-password
--enable-previews
--disable-previews
--reload
--debug [<options>]
Available options are:
--version
$ megacopy --local MyBackups --remote /Root/Backups
$ megacopy --local MyBackups --remote /Root/Backups --download
Mega.nz filesystem is represented as a tree of nodes of various types. Nodes are identified by a 8 character node handles (eg. 7Fdi3ZjC). Structure of the filesystem is not encrypted.
Megatools maps node tree structure to a traditional filesystem paths (eg. /Root/SomeFile.DAT).
NOTE: By the nature of Mega.nz storage, several files in the directory can have the same name. To allow access to such files, the names of conflicting files are extended by appending dot and their node handle like this:
/Root/conflictingfile /Root/conflictingfile.7Fdi3ZjC /Root/conflictingfile.mEU23aSD
You need to be aware of several special folders:
/Root
/Trash
/Inbox
/Contacts
/Contacts/<email>
megatools(7), megarc(5), megadf(1), megadl(1), megaget(1), megals(1), megamkdir(1), megaput(1), megareg(1), megarm(1), megacopy(1), megafs(1).
Part of the megatools(7) suite.
Report bugs at https://github.com/megous/megatools or megous@megous.com.
Megatools was written by Ondrej Jirman <megous@megous.com>, 2013-2016.
Official website is http://megatools.megous.com.