Child pages
  • Google Drive
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:

If you need to create a Google Drive account, you can set it up with this  Sign Up  link.

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

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

    Note:

    If this does not display, perform the following alternate steps: 

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

    3. Enter your new project name and fill in the appropriate Yes or No responses.

    4. Click Create.

    5. Click Enable.

  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. From the side navigation bar, click Credentials and then click  Create credentials.

    Note:

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

  2. Select Google Drive API from  Which API are you using?
  3. Select Web Server from  Where will you be calling the API from?
  4. Select User Data from  What data will you be accessing?
  5. Click What credentials do I need?.
  6. Enter your desired name in Create an OAuth 2.0 client ID.
  7. In the Authorized redirect URIs field, enter the  https://hostname:2087/googledriveauth/callback link, where hostname represents your server's hostname.
  8. Click Create.
  9. The interface will display your new client ID and client secret. We strongly recommend that you write these down in a secure place. You will need these in  Step 7  of the  Create a Google Drive transport  procedure. 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

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

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

  2. In WHM's Backup Configuration interface (Home >> Backup >> Backup Configuration), scroll down to the Additional Destinations section.
  3. In the Destination Type dropdown menu, select Google Drive™.
  4. Click Create new destination.
  5. Enter your desired destination name.
  6. Enter your desired folder where you wish to store backups.

    Note:

    If you do not specify a folder, the system will store backups under 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 appear for you to authorize access to your Google Drive data.
  9. Enter your desired Timeout duration.
  10. Click Save Destination.

    Note:

    If you wish to validate your remote destination, click Save and Validate Destination.

Additional documentation

  • No labels