Automate Uploading of cPanel Created Backups to Google Drive using rclone
- Clone this repo in /root directory of the server with directory name gdrive-backup-cpanel using following Command
git clone https://github.com/diyarit/Cpanel-Gdrive -b Cpanel-Gdrive
or you can use wget to download Zip Archive and Extract.
wget 'https://codeload.github.com/diyarit/Cpanel-Gdrive/zip/master'
unzip -j Cpanel-Gdrive -d Cpanel-Gdrive
- Run setup.sh with Server Hostname, Host Node, Cron Job Time as arguments
cd Cpanel-Gdrive
source setup.sh "server.hostname.com" "swift" "30 5 * * *"
server.hostname.com = Server's Hostname where Backup Script will run
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.