{"id":224,"date":"2021-07-23T12:25:51","date_gmt":"2021-07-23T12:25:51","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/how-to-configure-google-drive-as-a-backup-additional-destination\/"},"modified":"2021-07-23T12:25:51","modified_gmt":"2021-07-23T12:25:51","slug":"how-to-configure-google-drive-as-a-backup-additional-destination","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/how-to-configure-google-drive-as-a-backup-additional-destination\/","title":{"rendered":"How to Configure Google Drive as a Backup Additional Destination"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\"><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>This document explains how to set up your Google Drive\u2122 account as an <em>Additional Destination<\/em> in WHM\u2019s <em>Backup Configuration<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Backup &gt;&gt; Backup Configuration<\/em>).<\/p>\n<h2 id=\"prerequisites\">Prerequisites<\/h2>\n<ul>\n<li>Create a Google account.<\/li>\n<li>Create a Google Console project.<\/li>\n<li>Enable the Google Drive API from the Google Console.<\/li>\n<\/ul>\n<h2 id=\"create-your-account-credentials\">Create your account credentials<\/h2>\n<p>To set up Google Drive account credentials for backups, perform the following steps:<\/p>\n<ol>\n<li>Navigate to the Google API Manager website.<\/li>\n<li>In the left side navigation bar, click <em>Credentials<\/em>.<\/li>\n<li>Click <em>Create credentials<\/em>.<\/li>\n<li>Click <em>Help me choose<\/em>.<\/li>\n<li>From the <em>Which API are you using?<\/em> menu, select <em>Google Drive API<\/em>.<\/li>\n<li>From the <em>What data will you be accessing?<\/em> menu, select <em>User Data<\/em>.\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        The steps beyond this point may vary if you have already signed up or have authorized this API.\n    <\/div>\n<\/div>\n<\/li>\n<li>In the <em>App Information<\/em> section, enter the information for <em>App Name<\/em> and <em>User Support Email<\/em>.<\/li>\n<li>In the <em>Developer Information<\/em> section, enter the email address for the developer.\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>The <em>Set up OAuth consent screen<\/em> may appear. Google allows users to complete the form after they set up the OAuth consent screen.<\/p>\n<\/p><\/div>\n<\/div>\n<\/li>\n<li>The fields in the <em>Scopes<\/em> section are optional.<\/li>\n<li>In the <em>OAuth Client ID.<\/em> menu, select <em>Web application<\/em> as the <em>Application Type<\/em> you plan to use.\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        There may be additional fields to fill out based on the application you have chosen.\n    <\/div>\n<\/div>\n<\/li>\n<li>In the Authorized URLs field, add an entry for each server performing backups to this location, where <code>HOSTNAME<\/code> represents the hostname of a server:\n<div class=\"highlight\">\n<pre style=\"color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4\"><code class=\"language-bash\" data-lang=\"bash\">https:\/\/HOSTNAME:2087\/googledriveauth\/callback<\/code><\/pre>\n<\/div>\n<\/li>\n<li>Click <em>Create<\/em>. The <em>Credentials<\/em> interface will appear.<\/li>\n<li>Click the edit icon for the newly-created credentials. A credentials details interface will appear with your client ID and client secret.<\/li>\n<li>Copy the client ID and client secret and save them to a secure location. Step 7 of the <em>Create a Google Drive transport<\/em> procedure requires these credentials.<\/li>\n<\/ol>\n<h2 id=\"create-your-oauth-consent-screen\">Create your OAuth consent screen<\/h2>\n<p>To set up an OAuth consent screen, perform the following steps:<\/p>\n<ol>\n<li>Click <em>APIs &#038; Services<\/em>.<\/li>\n<li>Click <em>OAuth consent screen<\/em>. The <em>Oauth consent screen<\/em> configuration interface will appear.<\/li>\n<li>Under <em>Test Users<\/em>, click <em>Add Users<\/em>. A sidebar will appear.<\/li>\n<li>Enter the email addresses from steps 7 and 8 from the previous procedure.<\/li>\n<li>Click <em>Save<\/em>.\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        After you validate the backup destination, you can go back to this interface and click <em>Publish<\/em> to publish the application.\n    <\/div>\n<\/div>\n<\/li>\n<li>Set Google\u2019s <em>Queries per 100 seconds per user<\/em> setting to <code>10000<\/code>. For more information, read Google\u2019s Limits and Quotas on API Requests documentation.<\/li>\n<\/ol>\n<h2 id=\"create-a-google-drive-transport\">Create a Google Drive transport<\/h2>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<p>While you perform these steps, disable any popup blockers in your browser to prevent errors.<\/p>\n<\/p><\/div>\n<\/div>\n<p>To create a Google Drive transport, perform the following steps:<\/p>\n<ol>\n<li>Log in to WHM as a <code>root<\/code>-enabled user.<\/li>\n<li>Navigate to WHM\u2019s <em>Backup Configuration<\/em> interface <em>(WHM &gt;&gt; Home &gt;&gt; Backup &gt;&gt; Backup Configuration)<\/em> and scroll to the <em>Additional Destinations<\/em> section.<\/li>\n<li>From the <em>Destination Type<\/em> menu, select <em>Google Drive\u2122<\/em>.<\/li>\n<li>Click <em>Create new destination<\/em>.<\/li>\n<li>In the <em>Destination Name<\/em> text box, enter a display name for this backup destination.<\/li>\n<li>In the <em>Folder<\/em> text box, enter the desired folder in which to store backups.\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        If you do <strong>not<\/strong> specify a folder, the system will store backups in the top-level folder.\n    <\/div>\n<\/div>\n<\/li>\n<li>Enter your <em>Client ID<\/em> and <em>Client secret<\/em>.<\/li>\n<li>Click <em>Generate Credentials<\/em> to create the credentials file. A new tab will appear that allows you to authorize access to your Google Drive data.<\/li>\n<li>Follow Google\u2019s directions to authorize access to your Google Drive.<\/li>\n<li>When the message <em>Credentials successfully generated<\/em> appears, close that browser tab to return to the tab with the WHM interface.<\/li>\n<li>In the <em>Timeout<\/em> text box, enter the desired timeout duration. This value defaults to <code>30<\/code> seconds.<\/li>\n<li>Click <em>Save Destination<\/em>.\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>To validate your remote destination, click <em>Save and Validate Destination<\/em>.<\/li>\n<li>If you do <strong>not<\/strong> authorize access to your Google Drive data, this action will fail.<\/li>\n<\/ul><\/div>\n<\/div>\n<\/li>\n<\/ol><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview This document explains how to set up your Google Drive\u2122 account as an Additional Destination in WHM\u2019s Backup Configuration interface (WHM &gt;&gt; Home &gt;&gt; Backup &gt;&gt; Backup Configuration). Prerequisites Create a Google account. Create a Google Console project. Enable the Google Drive API from the Google Console. Create your account credentials To set up &hellip;<\/p>\n","protected":false},"author":1,"featured_media":225,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/224"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/225"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}