Plesk, cPanel, and CyberPanel have automatic Google Drive backup features. However, some alternatives like DirectAdmin and CWP lack this functionality. If your hosting panel doesn't support direct Google Drive backups, you can use this tool to automate the process.
This tool zips all files in your hosting control panel's backup folder and uploads the ZIP file to Google Drive.
- Download the backup.php file from GitHub. Download Here
- Upload the file to your web server using FTP. Place it in a secure location, e.g., https://example.com/2d9ef7c2e103d9eab521d5c55eb0af6c/backup.php
- Access the file URL in your browser to initiate the installation wizard. Follow instructions to fill in all fields and click Submit. Refer to How to Configure? if needed.
- After submission, follow the link provided to authenticate with your Google account linked to Google Drive. Copy the authentication code and paste it into the Google API Authorization Key field. Click Submit.
- Upon successful installation, you will receive a success notice and a Cronjob URL Address. Add a new cronjob in your hosting control panel to schedule backups (e.g., daily or weekly). Use a command like:
curl https://example.com/2d9ef7c2e103d9eab521d5c55eb0af6c/backup.php?cron=true
The setup wizard requires the following information:
- Google API Client ID
- Google API Client Secret
- Google Drive Folder ID
- Server Backup Folder Path
-
Google API Client ID and Google API Client Secret: Create a Google API application in Google API Console. Enable Google Drive API and set up OAuth Consent Screen.
-
Google Drive Folder ID: Create a new folder in Google Drive, get its URL, and extract the folder ID (the part after
/folders/
). -
Server Backup Folder Path: Locate the backup folder path on your web hosting control panel (e.g.,
/home/reseller_username/user_backups/
). Ensure the script has access to this folder.
By following these steps, you can set up automated backups to Google Drive for hosting panels without native support.