Get the Best WordPress Backup
& Migration Plugin Today
Get Duplicator Now

Duplicator Documentation

Documentation, Reference Materials, and Tutorials for Duplicator

Storing Your Backup to Google Cloud

Would you like to set up a Google Cloud backup for your WordPress site?

Google Cloud offers a secure way to protect your WordPress site from potential errors, hacks, or server failures by storing backups off-site. Its scalability and robust security make it a great choice for cloud storage of WordPress backups.

This tutorial will guide you through the process of backing up your WordPress site to Google Cloud!

Create a Google Cloud Bucket

You’ll need to enable billing on your Google Cloud account or use the Free Account. Once you log into your Google Cloud console, open the navigation menu and find Cloud Storage:

Next, select Buckets » Create:

Create Google Cloud bucket

Name the new bucket. Make sure to only use lowercase letters, numbers, hyphens, underscores, or dots:

New Google Cloud bucket

Next, choose the appropriate region where you want to store your data:

Google Cloud bucket region

You can then set a storage class, which will determine the cost to store and retrieve data from the bucket. You’ll have four options: StandardNearlineColdline, and Archive. Choose one based on how often you plan to access your backups:

Google Cloud storage class

For the next step, customize your access control settings. Uniform access control will only rely on bucket-level permissions, while Fine-grained will allow you to set object-level permissions:

Google Cloud access control

Under Protection tools, choose None or Object versioning:

Google Cloud bucket protection

After this, hit Create

Create Google Cloud Access Keys

To connect Google Cloud and Duplicator, you’ll need to generate access keys for the new bucket. First, go to Cloud Storage » Settings:

Google Cloud settings

Click on the Interoperability tab. Here, hit Create a key for a service account:

Google Cloud interoperability

In the pop-up, create a new service account:

Create Google Cloud service account

Enter an account ID and description:

Google Cloud service account ID

For the Role, select Owner:

Service account owner

Once you finish creating a service account, you’ll automatically get new access keys:

Google Cloud access keys

Copy both of these to use in the next step. 

Connect Google Cloud to Duplicator

Your Google Cloud account is now fully set up! Go back to your WordPress dashboard and head over to Duplicator Pro » Storage » Add New:

Add new storage location

Then, name the new storage location and select Google Cloud Storage as the Type:

Google Cloud storage location

Scroll down to the Authorization section. Paste your access and secret keys:

Duplicator Google Cloud authorization

For the endpoint, use this URL: https://storage.googleapis.com. Remember to add your Bucket name and Region.

At the bottom of the page, you can adjust the Max Packages. This is the maximum number of backups allowed in your Google Cloud account at one time:

Google Cloud storage settings

You should also disable full control ACL if you chose uniform access control when you set up the bucket.

To see if the integration is working, click on Test Storage. Duplicator will create and delete a small file on Google Cloud to test if it can do larger backups. 

Google Cloud introduces Soft Delete, a feature enhancing data security by protecting against deletion, effective March 2024. It safeguards data in both new and existing buckets, automatically preserving recently deleted data for 7 days, extendable to 90 days.

Key points:
– No charges for using soft delete until May 31, 2024, providing a trial period.

– To avoid charges after May 31, disable soft delete by setting the retention period to 0 before June 1st.

– Additional tips include analyzing billing impact using Cloud Monitoring, using sample scripts for customization, and implementing organization policy constraints.

Consider soft delete for preserving Google Cloud backups. For more information, refer to Google Cloud’s announcement.

Was this article helpful?

Related Articles