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

NAME

6       megacopy - Upload/download entire directories to/from your Mega.nz
7       account
8

SYNOPSIS

10       megacopy [-n] [--no-progress] --local <path> --remote <remotepath>
11       megacopy [-n] [--no-progress] --download --local <path> --remote <remotepath>
12

DESCRIPTION

14       Sync remote and local directories. No files are ever overwritten or
15       removed.
16
17       Default direction is to upload files to the cloud. If you want to
18       download files, you have to add --download option.
19

OPTIONS

21       -r <remotepath>, --remote <remotepath>
22           Remote directory path.
23
24       -l <path>, --local <path>
25           Local directory path.
26
27       -d, --download
28           Download files from the Mega.nz. The default is to upload.
29
30       -n, --dryrun
31           Don’t perform any actual changes, just print what would be done.
32
33       --no-progress
34           Disable upload progress reporting.
35
36       --enable-previews
37           Generate and upload file previews, when uploading new files. This
38           is the default, unless you changed it in the configuration file.
39           Use this to override the option from the configuration file.
40
41       --disable-previews
42           Don’t generate and upload file previews. Default is to generate
43           previews.
44
45       --disable-resume
46           Don’t resume downloads from partially dowloaded file. Default is to
47           resume.
48
49       -u <email>, --username <email>
50           Account username (email)
51
52       -p <password>, --password <password>
53           Account password
54
55       --no-ask-password
56           Never ask interactively for a password
57
58       --reload
59           Reload filesystem cache
60
61       --limit-speed <speed>
62           Set maximum allowed upload and download speed in KiB/s. This option
63           overrides config file settings. 0 means no limit. When using
64           ParallelTransfers > 1, upload speed limit is applied to each
65           transfer individually.
66
67       --proxy <proxy>
68           Use proxy server to connect to mega.nz. This option overrides
69           config file settings. More information can be found in libcurl
70           documentation at https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html.
71           Some acceptable values are:
72
73           ·   none : Disable proxy if it was enabled in the config file.
74
75           ·   socks5://localhost:9050 : Local SOCKSv5 proxy server
76
77           ·   socks5h://localhost:9050 : Local SOCKSv5 proxy server with DNS
78               handled by the proxy
79
80       --config <path>
81           Load configuration from a file
82
83       --ignore-config-file
84           Disable loading .megarc
85
86       --debug [<options>]
87           Enable debugging of various aspects of the megatools operation. You
88           may enable multiple debugging options separated by commas. (eg.
89           --debug api,fs)
90
91           Available options are:
92
93           ·   http: Dump HTTP request/response details (can be used to debug
94               connection/proxy issues)
95
96           ·   api: Dump Mega.nz API calls
97
98           ·   fs: Dump Mega.nz filesystem (may require --reload to actually
99               print something)
100
101           ·   cache: Dump cache contents
102
103           ·   tman: Dump transfer manager events
104
105       --version
106           Show version information
107

EXAMPLES

109       ·   Upload directory.
110
111               $ megacopy --local MyBackups --remote /Root/Backups
112
113       ·   Download directory.
114
115               $ megacopy --local MyBackups --remote /Root/Backups --download
116

REMOTE FILESYSTEM

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

SEE ALSO

157       megatools(7), megarc(5), megadf(1), megadl(1), megaget(1), megals(1),
158       megamkdir(1), megaput(1), megareg(1), megarm(1), megacopy(1).
159

MEGATOOLS

161       Part of the megatools(7) suite.
162

BUGS

164       Report bugs at https://github.com/megous/megatools or
165       megous@megous.com.
166

AUTHOR

168       Megatools was written by Ondrej Jirman <megous@megous.com>, 2013-2016.
169
170       Official website is http://megatools.megous.com.
171
172
173
174megatools 1.10.2                  04/15/2020                       MEGACOPY(1)
Impressum