1megatools-export(1) megatools-export(1)
2
3
4
6 megatools export - create public links for remote files
7
9 megatools export <remotepaths>...
10
12 Exports (creates public links) for all files stored in your mega.nz ac‐
13 count referenced by <remotepaths>.
14
15 Works only for individual files for now.
16
18 -u <email> , --username <email>
19 Account username (email)
20
21 -p <password> , --password <password>
22 Account password
23
24 --no-ask-password
25 Never ask interactively for a password
26
27 --reload
28 Reload filesystem cache
29
30 --limit-speed <speed>
31 Set maximum allowed upload and download speed in KiB/s. This
32 option overrides config file settings. 0 means no limit. When
33 using ParallelTransfers > 1, upload speed limit is applied to
34 each transfer individually.
35
36 --proxy <proxy>
37 Use proxy server to connect to mega.nz. This option overrides
38 config file settings. More information can be found in libcurl
39 documentation at ⟨https://curl.haxx.se/libcurl/c/CUR‐
40 LOPT_PROXY.html⟩. Some acceptable values are:
41
42 • none : Disable proxy if it was enabled in the config file.
43
44 • socks5://localhost:9050 : Local SOCKSv5 proxy server
45
46 • socks5h://localhost:9050 : Local SOCKSv5 proxy server with DNS
47 handled by the proxy
48
49 --netif <ifname|ip>
50 Network interface or local IP address used for outgoing connec‐
51 tions. You have to specify IP address bound to some of your lo‐
52 cal network interfaces, when specifying an IP address.
53
54 --ip-proto <proto>
55 Which IP protocol to prefer when connecting to mega.nz (v4, v6,
56 or any). This is just an advisory option. Megatools will re‐
57 solve mega.nz domain, and then use an A or AAAA record based on
58 the stated preference.
59
60 --config <path>
61 Load configuration from a file
62
63 --ignore-config-file
64 Disable loading .megarc
65
66 --debug [<options>]
67 Enable debugging of various aspects of the megatools operation.
68 You may enable multiple debugging options separated by commas.
69 (eg. --debug api,fs)
70
71 Available options are:
72
73 • http: Dump HTTP request/response details (can be used to debug
74 connection/proxy issues)
75
76 • api: Dump Mega.nz API calls
77
78 • fs: Dump Mega.nz filesystem (may require --reload to actually
79 print something)
80
81 • cache: Dump cache contents
82
83 • tman: Dump transfer manager events
84
85 --version
86 Show version information
87
88 <remotepaths>
89 One or more remote filesystem file paths to export.
90
92 • Export a file:
93
94 $ megatools export /Root/README
95 https://mega.nz/#!OFFRlbgR!k5rWmLp3mxB0gsq07Ii67PLd9L0wq4KondFLDlfH3Uw
96
98 Mega.nz filesystem is represented as a tree of nodes of various types.
99 Nodes are identified by a 8 character node handles (eg. 7Fdi3ZjC).
100 Structure of the filesystem is not encrypted.
101
102 Megatools maps node tree structure to a traditional filesystem paths
103 (eg. /Root/SomeFile.DAT).
104
105 NOTE: By the nature of Mega.nz storage, several files in the directory
106 can have the same name. To allow access to such files, the names of
107 conflicting files are extended by appending dot and their node handle
108 like this:
109
110 /Root/conflictingfile
111 /Root/conflictingfile.7Fdi3ZjC
112 /Root/conflictingfile.mEU23aSD
113
114 You need to be aware of several special folders:
115
116 /Root Writable directory representing the root of the filesystem.
117
118 /Trash Trash directory where Mega.nz web client moves deleted files.
119 This directory is not used by megatools when removing files.
120
121 /Inbox Not sure.
122
123 /Contacts
124 Directory containing subdirectories representing your contacts
125 list. If you want to add contacts to the list, simply create
126 subdirectory named after the contact you want to add.
127
128 /Contacts/<email>
129 Directories representing individual contacts in your contacts
130 list. These directories contain folders that others shared with
131 you. All shared files are read-only, at the moment.
132
134 megatools(1), megarc(5), megatools-df(1), megatools-dl(1), megatools-
135 get(1), megatools-ls(1), megatools-mkdir(1), megatools-put(1), mega‐
136 tools-reg(1), megatools-rm(1), megatools-copy(1).
137
139 Part of the megatools(1) suite of commands.
140
142 Report bugs to megatools@megous.com ⟨mailto:megatools@megous.com⟩ .
143 Your message will end up in a public archive, so be careful what you
144 say or send.
145
147 Megatools was written by Ondrej Jirman < megatools@megous.com
148 ⟨mailto:megatools@megous.com⟩ >, 2013-2022.
149
150 Official website is ⟨http://megatools.megous.com⟩.
151
152
153
154 20 July 2023 megatools-export(1)