Search our documentation...

Simply enter what you are looking for!

NOTICE: THIS IS OLD LEGACY DOCUMENTATION FOR JETBACKUP 3.1 (EOL), FOR THE NEWER MOST UPDATED DOCUMENTATION PLEASE VISIT: http://docs.jetbackup.com

Google Drive v2 cPanel Backup Destination

NOTE: GoogleDriveV2 destination is still on BETA and experimental (Use at your own risk).
Please report on any issue to our Support department.

Jetbackup supports remote Google Drive backups.

Step 1 – Configure Google Drive API

Click this link: https://console.developers.google.com/iam-admin/projects and use your Google username and password to login:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Click “GENERATE PROJECT” button:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Write your project name and click the “CREATE” button. at the bottom of the page you’ll see:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

After creating the project, use the search box at:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

In order to look up the term: “Google Drive API”, as shown here:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Under NAME, click “Google Drive API” and the following page will appear:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Click “ENABLE” as demonstrated above:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

After enabling, click the drawer icon left to Google APIs logo – API Manager – Credentials:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

In the credentials page, click the tab named “OAuth consent screen”:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Under “Product name shown to users” type the backup product’s name. In this example – “JetBackup”:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Click the “Save” Button. You’ll be shown the previous credentials page, where you should now click the “Create credentials” button and then the line titled: “OAuth client ID”:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Choose “Other”, type the client’s name and then click the “Create” button:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

At the OAuth client window, click “OK”:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

You’ll be shown the previous credentials page, where you should now click the download icon at the edge of the the client’s ID. This will allow you to download a JSON file which you will use later:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Save the JSON file to your PC.

 

Step 2 – Create a backup destination

At your WHM panel, click “JetBackup” (under “Plugins”) on the left column. Then click “Backup Destination” on JetBackup’s left column:

Google Drive cPanel Backup Destination

Google Drive cPanel Backup Destination

On Backup Destination page, click “Add new Destination” button:

Google Drive cPanel Backup Destination

Google Drive cPanel Backup Destination

At the following page which is:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

  1. Specify “Type” as “GoogleDriveV2”.
  2. Write a name for your destination.
  3. Check “Compressed Full Backup Files” and “Uncompressed Full Backup Files” at “Choose Indexing Type”.
  4. Open your previously downloaded JSON file with Notepad, copy the content and paste it in “OAuth 2.0 Client” text area:
Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Click the “Request Access Code” button, for a Google approval window to appear:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Make sure that the correct account is active and if not, change the account to the desired one. Click the “Allow” button. Another Google window will open, containing your access code – copy it:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Paste the copied access code to the access code text area. Click the “Create New Destination” button:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Step 3 – Create a backup job

As demonstrated in the previous screen shot, click “Backup Jobs” and at the Backup Jobs page, click the “Add new job” button:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

The resulting page is:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

  1. Write you job’s name.
  2. Specify the destination which you’ve created earlier.

At the bottom, click the “Create new Job” button. The result should be the following announcement:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

Optional:

1. Validate your backup destination:

At the Backup Destination page you should see a sync-icon left to the destination name. Click it – if the destination is valid, than the icon should change to a V sign:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

2. Manually run your backup job:

At the backup jobs page, click the play-icon in your desired job:

Google Drive V2 cPanel Backup Destination

Google Drive V2 cPanel Backup Destination

This will trigger a cron-job which will run you backup job. The cron-job itself runs every 1 minute, so the backup job will start within maximum 1 minute.