Creating Truenas Backup To Google Workspace

Marek ČulákMarek Čulák
2 min read

Overview

This is a how to article for a specific use case. A combination of using Google Workspace and Truenas as local NAS. Whereas in this situation we got to backup a folder (dataset) to Google drive. I am using the truenas UI as it is mostly recommended and needed for update persistency. In this example I am going to backup all our documents that are essential and we don't want to loose them. Once I have the Google workspace I can use all of them directly in Google docs. Here I am using a shared drive for collaboration. Another feature of the cloud backup is synchozination of the backup, which allows me to manipulate with the same data on PC and in workspace simultaneously.

Truenas Auth

Cloud credentials are located in credentials → Backup Credentials → Cloud Credentials. Let’s just click add a follow the next steps.

Easy and supported way is to login with their google OAuth, where a pop up window shows up with the google login. Client ID and Secret will get filled up, where as the access token as well. Next, I followed the blog below to find the team drive id. The location in google drive where I want to store all of them files.

Blog on how to find google drive id

Shortly, I have made a drive called DocumentsBackup. Once opened it’s id appeard in the url. This is the simplest way to look for it.

Firstly, let's navigate to Data Protection → Cloud Sync Tasks.

Another window appears to select the credentials. Let’s select the google login created just few moments before.

Let’s finish it up.

  • remote set, the google credential

  • direction is push as we want backup to gdrive

  • transfer mode = sync

  • most importantly dataset to backup /mnt/LynxData/Internal/Documents

After enabling the process. Task run and files were accessible over gdrive web ui.

Conclusion

The truenas ui made is dead simple to backup itself or any specific dataset. I plan to backup the whole export dataset to another NAS using rsync. As we are using the google workspace we have 30 gigabytes per user of cloud storage. I opted to use this for documents backup. It concluded to be a great storage combo.

0
Subscribe to my newsletter

Read articles from Marek Čulák directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Marek Čulák
Marek Čulák