Free secure backup in MEGA is a secured cloud storage that gives away up to 50GB free space. Using this service is recommended due to very tight security as even the user will not be able to gain access to data if he lose the password (and lose the recovery key).


Mega provided some scripts for uploading, syncing and etc to their cloud. This is specially useful when it comes to cheap secure backup of your files. All you need to do is creating a free account for beginning and perhaps purchase a premium account for a better service.

First it is just appropriate to setup proper locale variables:

localedef -i en_US -f UTF-8 en_US.UTF-8

And then setup the dependencies (Amazon Linux):

yum groupinstall 'Development Tools'
yum install glib* openssl-devel libcurl-devel libproxy gnutls
rpm -i
yum update kernel
yum update

OK! So now we have all the required libraries in place, we can proceed to megatools installation:

tar xvf megatools-1.9.95.tar.gz 
cd megatools-1.9.95

In case you don’t want to pass the account username password with each command we can just save it PLAINTEXT in a file (it is safer from some aspects but it has the risk of unauthorised access to this file)

vi /root/.megarc:
Username = your-email
Password = your-password

Just to test, run mega disk free script which gives you some info about space you have on the cloud:

You can find some more commands details @

And at the end some examples:
./megaput file_to_upload
./megaget /Root/file_to_download