Page tree
Skip to end of metadata
Go to start of metadata

Overview

This document explains how to set up your Google Drive™ account with backups.

Set up the Google Drive API for your Google account

Note:

To create a Google Drive account, visit Google's Create your Google Account page.

To configure the Google Drive API for your Google account, perform the following steps:

  1. Navigate to the Google API Manager website. 
  2. In the left navigation menu, click Library.
  3. Under Google Apps APIs, click Drive API.
  4. Click Create Project, and then click Create. A new menu will appear.

    Note:

    If the new menu does not display, perform the following steps and then proceed to Step 5: 

    1. Click Credentials in the left navigation bar.
    2. Click Create.

  5. Enter your new project name and click Create.

  6. Click Enable.

Create your account credentials

To set up your account credentials for backups, perform the following steps:

  1. In the side navigation bar, click Credentials.

  2. Click Create credentials.

    Note:

    If you have already created Google Drive account credentials, click Create credentials and then click Help me choose.

  3. From the Which API are you using? menu, select Google Drive API.
  4. From the Where will you be calling the API from? menu, select Web Server.
  5. From the What data will you be accessing? menu, select User Data.
  6. Click What credentials do I need?.
  7. In the Create an OAuth 2.0 client ID. text box, enter your desired name.
  8. In the Authorized redirect URIs text box, enter the https://hostname:2087/googledriveauth/callback link, where hostname represents your server's hostname.
  9. Click Create. The interface will display your new client ID and client secret. 

    • We strongly recommend that you save these credentials in a secure location. Step 7 of the Create a Google Drive transport procedure requires these credentials. 

    • You can also download a JSON file with your client ID and client secret, or access them in the Credentials section. 

  10. Click Done.

Create a Google Drive transport

Warning:

If you experience problems when you perform these steps, check your browser's popup blocker. Popup blockers may prevent your ability to perform this task successfully. 

To create a Google Drive transport, perform the following steps:

  1. Log in to WHM as a root-enabled user.

  2. Navigate to WHM's Backup Configuration interface (Home >> Backup >> Backup Configuration) and scroll to the Additional Destinations section.
  3. From the Destination Type menu, select Google Drive™.
  4. Click Create new destination.
  5. Enter your desired destination name.
  6. Enter the desired folder in which to store backups.

    Note:

    If you do not specify a folder, the system will store backups in the top-level folder.

  7. Enter your client ID and client secret. 
  8. Click Generate Credentials to generate the credentials file. A new tab will open to allow you to authorize access to your Google Drive data.
  9. In the Timeout text box, enter the desired timeout duration.
  10. Click Save Destination.

    Note:

    To validate your remote destination, click Save and Validate Destination.

Additional documentation

  • No labels