User Tools

Site Tools


megacmd

This is an old revision of the document!


mega.nz

MEGA provides up to 50 GB of free, fully-encrypted cloud storage

They also provide a number of CLI tools that allow you to connect and manage your cloud storage from the command-line.

rclone would be my preference, just because of familiarity and the abstraction that it provides - but it does not allow the use of the 2FA/MFA configured on my MEGA account

In my case, I wanted to backup my photos to the Cloud but I needed to exclude the *.RW2 (raw) files for space.

mega-login --auth-code=999999 <email> <password>
mega-exclude -a *.RW2
mega-mkdir /images
mega-sync /data/images /images

Using the mega-sync command without any parameters allows you to see the current status

$ mega-sync
ID LOCALPATH                                                                         REMOTEPATH                                                                        ActState   SyncState     SIZE  FILES   DIRS
 0 /data/images                                                                      /images                                                                           Active     Syncing   28.22 GB   9555    270
megacmd.1582675545.txt.gz · Last modified: 2020/02/25 19:05 by ian

free spam filter