Если интересен бэкап на
https://mega.nz/ (50 гб) :
https://github.com/t3rm1n4l/megacmdsudo apt-get install golang golang-go
cd /usr/local/src/
sudo git clone https://github.com/t3rm1n4l/megacmd
cd megacmd
sudo make
sudo cp megacmd /usr/local/bin
sudo nano ~/.megacmd.json
megacmd.json:
{
"User" : "user@mail.com",
"Password" : "password",
"DownloadWorkers" : 4,
"UploadWorkers" : 4,
"SkipSameSize" : true,
"Verbose" : 1
}
пример бэкапа 1 комендой:
mkdir /home/backup/db/ && cd /home/backup/ && tar cfz www.tgz /home/www/ && cd /home/backup/db && mysql -uBDUSER -pBDPASS -e 'show databases' | while read dbname; do mysqldump -uBDUSER -pBDPASS --complete-insert "$dbname"|gzip > /home/backup/db/"$dbname".sql.gz; done
Выгрузка на мега:
export date=`date +%d_%m_%y` && megacmd mkdir mega:/$date && megacmd sync /home/backup/ mega:/$date