Skip to content

Latest commit

 

History

History
66 lines (40 loc) · 3.64 KB

File metadata and controls

66 lines (40 loc) · 3.64 KB
title description weight alias tags
Backing Up Google Drive to TrueNAS SCALE
Provides instructions on adding Google Drive cloud credentials using the Add Cloud Credentials and Add Cloud Sync Task screens. It also provides information on working with Google-created content.
10
/scale/scaleuireference/dataprotection/cloud-sync-tasks/cloudsynctaskgoogledrive/
cloud
backup

Google Drive and G Suite are widely used tools for creating and sharing documents, spreadsheets, and presentations with team members. While cloud-based tools have inherent backups and replications included by the cloud provider, certain users might require additional backup or archive capabilities. For example, companies using G Suite for important work might be required to keep records for years, potentially beyond the scope of the G Suite subscription. TrueNAS offers the ability to easily back up Google Drive by using the built-in cloud sync.

Setting up Google Drive Credentials

You can add Google Drive credentials using the Add Cloud Credentials screen accessed from the Credentials > Backup Credentials > Cloud Credentials screen, or you can add them when you create a cloud sync task using the Add Cloud Sync Task screen accessed from the Data Protection > Cloud Sycn Task screen.

Adding Google Drive Credentials Using Cloud Credentials

{{< include file="/static/includes/AddCloudCredentialStep1.md" >}}

  1. Select Google Drive on the Provider dropdown list. The Google Drive authentication settings display on the screen.

  2. Enter the Google Drive authentication settings.

    CloudCredentialsGoogleDriveAuthentication

    a. Click Log In To Provider. The Google Authentication window opens.

    GoogleOAuthProceed

    b. Click Proceed to open the Choose an Account window.

    GoogleOAuthAccount

    c. Select the email account to use. Google displays the Sign In window. Enter the password and click Next to enter the password. Click Next again. Google might display a Verify it's you window. Enter a phone number where Google can text an verification code, or you can click Try another way.

    d. Click Allow on the TrueNAS wants to access your Google Account window. TrueNAS populates Access Token with the token Google provides.

    GoogleOAuthPermissions

  3. Click Verify Credentials and wait for TrueNAS to display the verification dialog with verified status. Close the dialog.

  4. Click Save. The Cloud Credentials widget displays the new credentials. These are also available for cloud sync tasks to use.

Adding A Google Drive Cloud Sync Task

You must add the cloud credential on the Backup Credentials screen before you create the cloud sync task.

To add a cloud sync task, go to Data Protection > Cloud Sync Tasks and click Add. The Cloudsync Task Wizard opens.

  1. Select Google Drive on the Credential dropdown list, then enter your credentials.

  2. Click Next.

{{< include file="/static/includes/AddCloudSyncTaskSteps3-8.md" >}}

See Using Scripting and Environment Variables for more information on [environment variables]({{< relref "/SCALE/SCALETutorials/DataProtection/CloudSyncTasks/_index.md" >}}).

Working with Google Created Content

{{< include file="/static/includes/GoogleDriveBadPermissions.md" >}}