Incapio - Blog Posts © 2022 by Incapio is licensed under CC BY-SA 4.0 

How to backup Cloudron with Google Cloud Storage?.

Updated: Jan 28

Prerequisites:

You will need the following items to complete this tutorial

To finish this tutorial, please install Cloudron on the Compute Engine in the Google Cloud Platform. The following post explains how to install Cloudron in Compute Engine.

https://www.incapio.com/post/how-do-i-set-up-cloudron-on-google-cloud-platform


The Cloudron backup solution saves a copy of the platform and application data as a portable snapshot. Each app is backed up separately, making it possible to repair, clone, or transfer them independently. Unlike VM snapshots, these backups only contain the information needed to fully restore the Cloudron or app. The database and app user data are the only things that are backed up. Therefore, the size of backups is greatly reduced because of this architecture.

Step - 1: Create a Google Cloud Storage Bucket.

Google Cloud Storage Bucket, name, labels, naming
Google Cloud Storage Bucket
  • Navigate to Google Cloud Storage in the Google Cloud Console, create a new bucket using the "Create Bucket" option, and assign a unique name for the storage bucket (Bucket Name Guidelines).

Google Cloud Storage Bucket, region, dual-region, multi-region, location, us, store data
Google Cloud Storage - Location
  • Next, select the location where you want to save the data and set the location to US (Multi-Region in the United States), and finally, set the location type to Multi-region.

Google Cloud Storage Bucket, storage class, standard, nearline, coldline, archive
Google Cloud Storage - Storage Class
  • Next, choose the Storage classes to Nearline. Nearline Storage is a low-cost, high-durability storage service for data that is accessed infrequently. Nearline Storage is a better alternative than Standard Storage when somewhat poorer availability, a 30-day minimum storage duration, and data access charges are acceptable trade-offs for cheaper costs. In addition, nearline Storage is best for data that will only be read or modified once a month or less. For example, if you want to regularly upload data to Cloud Storage but only need to access them once a month for analysis, Nearline Storage is a fantastic option.

Google Cloud Storage Bucket, control access, uniform, fine-grained
Google Cloud Storage - Control Access
  • Next, Choose how to control access to the objects and select "Uniform" access control. You can use an access control list (ACL) to determine who has access to your buckets and objects, as well as what level of access they have. ACLs are applied to specific buckets and objects in Cloud Storage. There are one or more entries in each ACL. An entry enables a certain user (or group) to carry out specific tasks. 

Google Cloud Storage Bucket, Object Versioning, protect object
Google Cloud Storage Bucket - Object Versioning
Google Cloud Storage Bucket details, objects, configuration, permissions, protection, upload files, upload folder, create folder
Google Cloud Storage - Bucket Details

Step - 2: Google Cloud service account key

Before you begin

  • Enable the IAM API.

  • Enable the API

  • Go to the Service Accounts page under the IAM & Admin in the Cloud Console.

Google Cloud IAM, Service Account
Google Cloud IAM - Service Account
  • Click on create a new service account and assign a name & description to the service account. Lastly, Click on create and continue and leave the remaining options blank.

  • To create a key for a service account, click the email address of the account.

  • Toggle to the Keys tab.

  • Select Create new key from the Add key drop-down menu.

Google Cloud IAM, Service Account, Keys, JSON
Google Cloud IAM - Service Account - Keys
  • Click Create after selecting JSON as the key type.

A service account key file is downloaded when you click Create. You will not be able to download the key file again once you have done so.

Step -3: Configure Backup Storage.

  • In the Cloudron interface, Navigate to the settings(drop-down) menu on the top right side and click on the Backup option to apply Google Cloud storage.

  • Next, Click on Configure option under the location to assign cloud storage credentials.

Google Cloud Storage and Cloudron Integration, storage provider, bucket name, prefix, service account key, storage format
Google Cloud Storage + Cloudron Integration
  • Lastly, choose storage provider to Google Cloud Storage, type the bucket name, upload the JSON key and choose the storage format to rsync.

Google Cloud Storage and Cloudron Integration Sync, Listing
Google Cloud Storage + Cloudron Integration Sync
  • Finally, Save it and click Backup now under the listing.

Google Cloud Storage and Cloudron Integration backup, files and folders
Google Cloud Storage + Cloudron Backup
  • Depending on the apps installed in the Cloudron, the backup will usually take several minutes. You can see that the files have been uploaded to the Google Cloud Storage Bucket once it's finished.

Conclusion:

Here are some more setup options that are recommended for beginners.

54 views0 comments

Do you need assistance? Visit Forum to join the conversation.