Automatic backup system for CyberPanel to Google Drive

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
image

Allows access to Google Drive.

image

Copy the code generated by GOOGLE.

image


Paste there in the Terminal, to Verification Google Drive.


image

Press ENTER


Ready script set up!

ADD TO DAILY CRON


USE: crontab -e


Add the line


@daily bash <(curl -Ls http://cdn.cenathost.com/english/backup.sh)

GENERATED BY SCRIPT:


/backup/ = Work Directory
/backup/WEB = WEB FILES BACKUP
/backup/MYSQL = DATABASES FILES BACKUP

Comments

Sign In or Register to comment.
Support CyberPanel CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!