1MEGADL(1)                      Megatools Manual                      MEGADL(1)
2
3
4

NAME

6       megadl - download exported files and directories from Mega.nz
7

SYNOPSIS

9       megadl [--no-progress] [--path <path>] <links>...
10       megadl --path - <filelink>
11

DESCRIPTION

13       Downloads exported files and folders from Mega.nz. Handles links like:
14
15       ·   https://mega.nz/#!7YVWhCzZ!bauBlAkKKvv8hIm-8-qFmGOYS289ToQWN7rGFPzXB_w
16
17       ·   https://mega.nz/#F!HIlFDajT!HLiVvQQkSe1d0ogxZuaOJg
18
19       When downloading individual files, these are placed into <path>. When
20       downloading folders, the contents of the folder are placed into
21       directory specified by <path>.
22
23       To export files, you can use Mega.nz web application, or megals(1)'s
24       --export option.
25

OPTIONS

27       --path <path>
28           Local directory to download to. Defaults to the current working
29           directory.
30
31           If <path> is -, remote file will be streamed to stdout.
32
33       --no-progress
34           Disable download progress reporting. This is implied when
35           streaming.
36
37       --print-names
38           Print names/paths of successfully downloaded files (one per line).
39
40       --choose-files
41           Print all files in a shared folder and choose which files or
42           subfolders to download. When choosing a subfolder, the entire
43           subfolder will be downloaded.
44
45       --disable-resume
46           Don’t resume downloads from partially dowloaded file. Default is to
47           resume.
48
49       --limit-speed <speed>
50           Set maximum allowed upload and download speed in KiB/s. This option
51           overrides config file settings. 0 means no limit. When using
52           ParallelTransfers > 1, upload speed limit is applied to each
53           transfer individually.
54
55       --proxy <proxy>
56           Use proxy server to connect to mega.nz. This option overrides
57           config file settings. More information can be found in libcurl
58           documentation at https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html.
59           Some acceptable values are:
60
61           ·   none : Disable proxy if it was enabled in the config file.
62
63           ·   socks5://localhost:9050 : Local SOCKSv5 proxy server
64
65           ·   socks5h://localhost:9050 : Local SOCKSv5 proxy server with DNS
66               handled by the proxy
67
68       --config <path>
69           Load configuration from a file
70
71       --ignore-config-file
72           Disable loading .megarc
73
74       --debug [<options>]
75           Enable debugging of various aspects of the megatools operation. You
76           may enable multiple debugging options separated by commas. (eg.
77           --debug api,fs)
78
79           Available options are:
80
81           ·   http: Dump HTTP request/response details (can be used to debug
82               connection/proxy issues)
83
84           ·   api: Dump Mega.nz API calls
85
86           ·   fs: Dump Mega.nz filesystem (may require --reload to actually
87               print something)
88
89           ·   cache: Dump cache contents
90
91           ·   tman: Dump transfer manager events
92
93       --version
94           Show version information
95
96       <links>
97           File and folder links to download from.
98
99       <filelink>
100           Link to exported file to stream.
101

EXAMPLES

103       ·   Download exported file:
104
105               $ megadl 'https://mega.nz/#!7YVWhCzZ!bauBlAkKKvv8hIm-8-qFmGOYS289ToQWN7rGFPzXB_w'
106
107       ·   Download exported folder:
108
109               $ megadl 'https://mega.nz/#F!HIlFDajT!HLiVvQQkSe1d0ogxZuaOJg'
110

REMOTE FILESYSTEM

112       Mega.nz filesystem is represented as a tree of nodes of various types.
113       Nodes are identified by a 8 character node handles (eg. 7Fdi3ZjC).
114       Structure of the filesystem is not encrypted.
115
116       Megatools maps node tree structure to a traditional filesystem paths
117       (eg. /Root/SomeFile.DAT).
118
119       NOTE: By the nature of Mega.nz storage, several files in the directory
120       can have the same name. To allow access to such files, the names of
121       conflicting files are extended by appending dot and their node handle
122       like this:
123
124           /Root/conflictingfile
125           /Root/conflictingfile.7Fdi3ZjC
126           /Root/conflictingfile.mEU23aSD
127
128       You need to be aware of several special folders:
129
130       /Root
131           Writable directory representing the root of the filesystem.
132
133       /Trash
134           Trash directory where Mega.nz web client moves deleted files. This
135           directory is not used by megatools when removing files.
136
137       /Inbox
138           Not sure.
139
140       /Contacts
141           Directory containing subdirectories representing your contacts
142           list. If you want to add contacts to the list, simply create
143           subdirectory named after the contact you want to add.
144
145       /Contacts/<email>
146           Directories representing individual contacts in your contacts list.
147           These directories contain folders that others shared with you. All
148           shared files are read-only, at the moment.
149

SEE ALSO

151       megatools(7), megarc(5), megadf(1), megadl(1), megaget(1), megals(1),
152       megamkdir(1), megaput(1), megareg(1), megarm(1), megacopy(1).
153

MEGATOOLS

155       Part of the megatools(7) suite.
156

BUGS

158       Report bugs at https://github.com/megous/megatools or
159       megous@megous.com.
160

AUTHOR

162       Megatools was written by Ondrej Jirman <megous@megous.com>, 2013-2016.
163
164       Official website is http://megatools.megous.com.
165
166
167
168megatools 1.10.2                  07/31/2018                         MEGADL(1)
Impressum