Let's view together how to store your website or database backups on your Google Cloud Platform Storage.

Requirements

To get started make sure you have a Google Cloud Storage setup.


While creating your Google Cloud Storage, make sure yo write down your "Bucket name", "Region".

Then get your credentials for Google Cloud Platform using IAM Service Accounts using the Service Account section of the Google Developer Console.

Service Accounts behave just like normal User permissions in Google Cloud Storage ACLs, so you can limit their access (e.g. make them read only).

After creating an account, a JSON file containing the Service Account's credentials will be downloaded onto your machines. These credentials are what SimpleBackups will use for authentication.


A. Create your credentials (Service Account Key)

Step 1. Create a new service account

Step 1. Create a new service account

Step 2. Add service account details

Step 2. Add service account details

Step 3. Add permissions to service account

Step 3. Add permissions to service account

Step 3a. Either give read/write/delete access to objects

This permission ensures that SimpleBackups can create, read, delete, objects and will allow it to create backups on your storage, and rotate them (purge old copies). If you need more fine grain-ed permissions, you could create a custom Google Cloud IAM role/policy.

Step 3a. Either give read/write/delete access to objects

Note: It is recommended to create a custom role/policy as shown below to give SimpleBackups the least needed permissions.


Step 3b. Or, give read and write access to objects only (no delete)

In this case, you need to ensure that you add your storage in SimpleBackups as "immutable storage" - this way SimpleBackups will not request the delete permission and will not rotate backups.

Step 3b. Or, give read and write access to objects only (no delete)

Step 4. Finalize the new service account

Step 4. Finalize the new service account

Step 5. Select the created service account

Step 5. Select the created service account

Step 6. Create a new key for your service account

Step 6. Create a new key for your service account

Step 7. Create a JSON private key for your service account

Step 7. Create a JSON private key for your service account

Step 8. Copy your service account key

Finally, when you create the key, it will be downloaded. Open it in any text editor and copy the whole content. You will need this when adding your account as shown in the next step.


B. Configure your "Google Cloud Storage" storage

Now let's simply head to your SimpleBackups account, and go to the "Create Storage" section.

Select "Google Cloud Storage" in the storage options.
And fill in the setting form with the information you've copied from your Google Cloud Storage account.

B. Configure your

To finalize the storage creation define the name you want to use (we usually use the bucket name here too).

And that's it, your Google Cloud Storage will now be available as a new storage.

Did this answer your question?