Automate Creation and Uploading of CyberPanel Backups to Google Drive using rclone
- Clone this repo in /root directory of the server with directory name gdrive-backup-cyberpanel using following Command
git clone https://github.com/xaksh/gdrive-backup-cyberpanel -b cyberpanel+gdrive gdrive-backup-cyberpanel
or you can use wget to download Zip Archive and Extract.
wget 'https://github.com/xaksh/gdrive-backup-cyberpanel/archive/cyberpanel+gdrive+jbc.zip'
unzip -j cyberpanel+gdrive+jbc.zip -d gdrive-backup-cyberpanel
- Run setup.sh with Server Hostname, Host Node, Cron Job Time as arguments
cd gdrive-backup-cyberpanel
source setup.sh "server.hostname.com" "swift" "30 5 * * *"
server.hostname.com = Server's Hostname where Backup Script will run or Primary Domain Name
swift = Host Node name
30 5 * * * = Backup Upload Script will run daily @5:30 AM
Example:
source setup.sh "swift.basezap.com" "swift" "30 5 * * *"
- rclone will ask to create a new remote. Make remote for Google drive with "gdrive" as remote name without qoutes.