Functions of this script:
- Deletes files prior to 7 days (/home/*/backup/*)
- First run script install dependencies
- Generate backup WEBSITES
- Generate backup MYSQLs
- Compress all files
- Send the backup to transfer.sh
- Generate a log in Google Drive
- Upload file log Google Drive
FIRST RUN SCRIPT:
Entering the URL in your web browser
Allows access to Google Drive.
Copy the code generated by GOOGLE.
Paste there in the Terminal, to Verification Google Drive.
Ready script set up!
ADD TO DAILY CRON
Add the line
@daily bash <(curl -Ls http://cdn.cenathost.com/english/backup.sh) </code>
GENERATED BY SCRIPT:
/backup/ = Work Directory
/backup/WEB = WEB FILES BACKUP
/backup/MYSQL = DATABASES FILES BACKUP