http://mega.nz/ 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 ftp://rpmfind.net/linux/centos/6.7/os/x86_64/Packages/glib-networking-22.214.171.124-2.2.el6.x86_64.rpm yum update kernel yum update
OK! So now we have all the required libraries in place, we can proceed to megatools installation:
wget https://megatools.megous.com//builds/megatools-1.9.95.tar.gz tar xvf megatools-1.9.95.tar.gz cd megatools-1.9.95 ./configure make
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)
[Login] 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 @https://megatools.megous.com/man/megatools.html
And at the end some examples: