megatools-copy(1)
π megatools-copy π
okay bestie so this is megatools-copy, part of the megatools(1) family (manual section 1, she's that girl). buckle up, we're moving files π¦
πΈ NAME πΈ
megatools copy β upload/download entire directories to/from your Mega.nz account. yes, whole directories. she does the most. π
β¨ SYNOPSIS β¨
megatools copy [-n] [--no-progress] --local <path> --remote <remotepath>
megatools copy [-n] [--no-progress] --download --local <path> --remote <remotepath>
π DESCRIPTION π
She syncs remote and local directories. That's the whole vibe. No files are ever overwritten or removed. periodt, nothing gets deleted, nothing gets clobbered, she is a safe girl. π«Ά
The default direction is upload β files go up to the cloud. If you want to go the other way and pull files down, you have to add --download. that's it, that's the rule. β¨
π OPTIONS π
-r <remotepath>,--remote <remotepath>β the remote directory path. where in the cloud we're living today. βοΈ-l <path>,--local <path>β the local directory path. your actual computer, bestie. π»-d,--downloadβ download files from the Mega.nz. the default is to upload, so this is you flipping the direction. π-n,--dryrunβ don't actually do anything, just print what would be done. like a rehearsal, no commitment. π--no-progressβ disable upload progress reporting. if the little bar is stressing you out, turn it off. π--enable-previewsβ generate and upload file previews, when uploading new files. this is the default, unless you changed it in the configuration file. use this to override the option from the configuration file. π--disable-previewsβ don't generate and upload file previews. default is to generate previews. so this is you saying "no thanks to the thumbnails". π«--disable-resumeβ don't resume downloads from partially downloaded file. default is to resume. so by default she picks up where she left off, and this option is you being like "start over, idc". π-u <email>,--username <email>β account username (email). π§-p <password>,--password <password>β account password. π€«--no-ask-passwordβ never ask interactively for a password. no prompts, no waiting. π--reloadβ reload filesystem cache. refresh her memory, she forgot. π§--limit-speed <speed>β set maximum allowed upload and download speed in KiB/s. this option overrides config file settings.0means no limit. when usingParallelTransfers > 1, upload speed limit is applied to each transfer individually. so like, per-transfer, not global, iykyk. πββοΈ--proxy <proxy>β use proxy server to connect to mega.nz. this option overrides config file settings. more information can be found in libcurl documentation at β¨https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.htmlβ©. some acceptable values are:none: Disable proxy if it was enabled in the config file.socks5://localhost:9050: Local SOCKSv5 proxy serversocks5h://localhost:9050: Local SOCKSv5 proxy server with DNS handled by the proxy
--netif <ifname|ip>β network interface or local IP address used for outgoing connections. you have to specify IP address bound to some of your local network interfaces, when specifying an IP address. yes, actually bound to one. don't just say any IP. π€--ip-proto <proto>β which IP protocol to prefer when connecting to mega.nz (v4,v6, orany). this is just an advisory option. Megatools will resolve mega.nz domain, and then use an A or AAAA record based on the stated preference. it's a suggestion, not a demand. πββοΈ--config <path>β load configuration from a file. π--ignore-config-fileβ disable loading.megarc. bye bye config file. π--debug [<options>]β enable debugging of various aspects of the megatools operation. you may enable multiple debugging options separated by commas. (eg.--debug api,fs) available options are:http: Dump HTTP request/response details (can be used to debug connection/proxy issues)api: Dump Mega.nz API callsfs: Dump Mega.nz filesystem (may require--reloadto actually print something)cache: Dump cache contentstman: Dump transfer manager events
--versionβ show version information. β
π EXAMPLES π
- Upload directory. β¬οΈ
$ megatools copy --local MyBackups --remote /Root/Backups
- Download directory. β¬οΈ
$ megatools copy --local MyBackups --remote /Root/Backups --download
π¦ REMOTE FILESYSTEM π¦
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β Writable directory representing the root of the filesystem. π/Trashβ Trash directory where Mega.nz web client moves deleted files. This directory is not used by megatools when removing files. ποΈ/Inboxβ Not sure. π€·ββοΈ (yes that's literally what the manual says, iconic honestly)/Contactsβ Directory containing subdirectories representing your contacts list. If you want to add contacts to the list, simply create subdirectory named after the contact you want to add. π/Contacts/<email>β Directories representing individual contacts in your contacts list. These directories contain folders that others shared with you. All shared files are read-only, at the moment. π
π SEE ALSO π
megatools(1), megarc(5), megatools-df(1), megatools-dl(1), megatools-get(1), megatools-ls(1), megatools-mkdir(1), megatools-put(1), megatools-reg(1), megatools-rm(1), megatools-copy(1).
go read the rest of the family, they're all serving. π
π§ MEGATOOLS π§
Part of the megatools(1) suite of commands.
π BUGS π
There is no upstream support for bugreports and feature requests. π but you can send code patches to megatools@xff.cz β¨mailto:megatools@xff.czβ© to get them integrated into upstream repository. bring your patch, bestie, they'll take it. π«Ά
π AUTHOR π
Megatools was written by Ondrej Jirman < megatools@xff.cz β¨mailto:megatools@xff.czβ© >, 2013-2022.
Official website is β¨https://xff.cz/megatools/β©. β
and that's the whole page, fr fr β this one's from 11 July 2025 and it's the megatools-copy(1) page, mwah π
π¦ where this page comes from
- debian trixie: megatools 1.11.5-1 Β· GPL-2+with_exception
- ubuntu questing: megatools 1.11.5-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms