Skip to content

Automatically upload your backups to Google Drive with using this small tool.

License

Notifications You must be signed in to change notification settings

OsmanTunahan/drive-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Image

Google Drive Backup Tool

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.

What Does This Tool Do?

This tool zips all files in your hosting control panel's backup folder and uploads the ZIP file to Google Drive.

How to Use?

  1. Download the backup.php file from GitHub. Download Here
  2. Upload the file to your web server using FTP. Place it in a secure location, e.g., https://example.com/2d9ef7c2e103d9eab521d5c55eb0af6c/backup.php
  3. 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.
  4. 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.

Image

  1. 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

How to Configure?

The setup wizard requires the following information:

  • Google API Client ID
  • Google API Client Secret
  • Google Drive Folder ID
  • Server Backup Folder Path

Steps to Configure:

  • 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.

    Image

  • Google Drive Folder ID: Create a new folder in Google Drive, get its URL, and extract the folder ID (the part after /folders/).

    Image

  • 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.

    image

By following these steps, you can set up automated backups to Google Drive for hosting panels without native support.

About

Automatically upload your backups to Google Drive with using this small tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages