Updated: Jan 28
You will need the following items to complete this tutorial
A Google Cloud service account key in JSON format.
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.
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.
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).
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.
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.
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.
Lastly, choose Object Versioning. It is best for data recovery. Kindly refer to the below article to learn more about object versioning.
Finally, click on create bucket option to create a new bucket.
Step - 2: Google Cloud service account key
Before you begin
Enable the IAM API.
Go to the Service Accounts page under the IAM & Admin in the Cloud Console.
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.
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.
Lastly, choose storage provider to Google Cloud Storage, type the bucket name, upload the JSON key and choose the storage format to rsync.
Finally, Save it and click Backup now under the listing.
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.
Here are some more setup options that are recommended for beginners.