Set up the Google Drive API for your Google account
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 search bar, search for GoogleDrive API.
3. Click on the Google Drive API to enter the API.
4. Click Enable.
Create your account credentials
To set up your account credentials for backups, perform the following steps:
1. In the navigation bar, click Credentials.
2. Click Create credentials. Select OAuth Client ID.
3. From the Application Type? menu, select Web Server.
4. From the Name? Type in the name of the connection you like.
5. In the Authorized redirect URIs click Add URL and, enter the https://hostname:2087/googledriveauth/callback link, where hostname represents your server's hostname.
6. Click Create. The interface will display your new client ID and client secret.
7. Click Done.
Create a Google Drive transport
To create a Google Drive transport, following steps:
1. Log in to WHM as a root-enabled user.
2. Navigate to WHM's Backup Configuration interface (WHM >> 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.
7. Enter your client ID and client secret which you saved from google account credentials.
8. Click Generate Credentials to generate the credentials file. A new tab will appear that allows you to authorize access to your Google Drive data.
9. Click Authorize Access.
10. In the Timeout text box, enter the desired timeout duration.
11. Click Save.