How to Configure Google Drive as an Additional Backup Destination in WHM

How to Configure Google Drive as an Additional Backup Destination in WHM

~3 min read · Updated Feb 15, 2026

1. Overview


This document explains how to configure your Google Drive™ account as an Additional Destination in WHM’s Backup Configuration interface:


WHM » Home » Backup » Backup Configuration


2. Prerequisites


Before using Google Drive as a backup destination, complete the following:

  • Create a Google account.
  • Create a Google Cloud Console project.
  • Enable the Google Drive API in the Google Console.

3. Create Your Account Credentials


To generate Google Drive credentials for WHM backups, follow these steps:

3.1 Access Google API Manager

  • Go to the Google API Manager website.
  • In the left navigation menu, click Credentials.
  • Click Create credentials.
  • Select Help me choose.

3.2 Credential Type

  • Under Which API are you using?, choose Google Drive API.
  • Under What data will you be accessing?, choose User Data.
  • Click NEXT.

3.3 OAuth Consent Screen

If this is your first time authorizing the API, the OAuth Consent Screen will appear:

  • Enter an App Name and select a User Support Email.
  • Provide a developer contact email.
  • Click SAVE AND CONTINUE.

3.4 Scopes

  • Click ADD OR REMOVE SCOPES.
  • Select the Google Drive API scope: .../auth/drive.file.
  • Click Update, then SAVE AND CONTINUE.

3.5 OAuth Client ID

  • Under Application type, select Web application.
  • Enter a name for the application.
  • In Authorized redirect URIs, add one entry per server:
https://HOSTNAME:2087/googledriveauth/callback

  • Click CREATE.
  • In the Your Credentials section, click DOWNLOAD.
  • Click DONE.

Important: Save your Client ID and Client Secret. You will need them when creating the Google Drive transport in WHM.


4. Set Up Your OAuth Consent Screen


  • In the left menu, click OAuth consent screen.
  • Under Test Users, click ADD USERS.
  • Add the email addresses used earlier.
  • Click SAVE.

5. Publish the Google Application


If you do not publish your application, Google will disable it after seven days. Refer to Google’s documentation titled Publish apps to the Google Workspace Marketplace for instructions.


6. Create a Google Drive Transport in WHM


Warning: Disable any browser popup blockers before proceeding.


Steps:

  • Log in to WHM as a root-level user.
  • Navigate to:

WHM » Home » Backup » Backup Configuration » Additional Destinations


  • In Destination Type, select Google Drive™.
  • Click Create New Destination.
  • Enter a display name in Destination Name.
  • Enter a folder path in Folder (optional).
  • Enter your Client ID and Client Secret.
  • Click Generate Credentials.
  • A new tab will open—follow Google’s instructions to authorize access.
  • When you see Credentials successfully generated, close the tab.
  • Set a timeout value (default: 30 seconds).
  • Click Save Destination.

Note: To validate the destination, click Save and Validate Destination. If you have not authorized Google Drive access, validation will fail.


Additional Documentation


For more details, refer to cPanel’s official documentation.


Written & researched by Dr. Shahin Siami

Related Articles

How to Restore Your cPanel Account: A Complete Guide for New System Administrators

This guide explains how new system administrators can restore a cPanel account using WHM, transfer accounts and configurations between servers, and enable diagnostic logging for transfer and restore operations. It covers essential concepts such as WHM vs. cPanel, root access, backup handling, SFTP uploads, transfer methods, and advanced debugging tools.

Continue

آموزش کامل انتقال تمام اکانت‌های cPanel از یک سرور به سرور دیگر

این مقاله نحوه انتقال همه اکانت‌های cPanel، تنظیمات سرویس‌ها، گواهی‌های SSL و IP اصلی سرور را از یک سرور قدیمی (Source) به یک سرور جدید (Target) توضیح می‌دهد. شامل نصب سرور جدید، انتقال تنظیمات، انتقال اکانت‌ها، تغییر IP، تنظیم DNS و نصب مجدد SSL است.

Continue

How to Migrate a WordPress® Installation to a cPanel & WHM Server

This guide explains how to migrate a WordPress installation from a macOS-hosted environment to a cPanel & WHM server. It covers exporting the database, uploading WordPress files, creating and importing a MySQL database, updating URLs, configuring wp-config.php, fixing broken links, and finalizing the migration.

Continue

How to Manually Transfer an Account Between Servers in cPanel & WHM

This article explains how to manually transfer a cPanel account between servers when the account is too large for WHM’s automated transfer tools. It covers creating temporary directories, compressing public_html and log files, securely transferring data with SCP, and restoring the files on the destination server.

Continue

How to Manually Migrate Horde Calendars and Contacts to Roundcube in cPanel & WHM

This article explains how to manually migrate Horde calendars and contacts to Roundcube in cPanel & WHM version 108 through 118. It covers exporting Horde data, placing it in the correct directories, and importing it into Roundcube using built‑in plugins or manual import tools.

Continue

How to Manually Migrate Accounts to cPanel & WHM from Unsupported Control Panels

This article explains how experienced system administrators can manually migrate accounts from unsupported third‑party control panels to cPanel & WHM. It covers pre‑migration steps, installation requirements, file and directory transfers, database restoration, SSL migration, and post‑migration tasks.

Continue