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:
![image - Duplicator](https://duplicator.com/wp-content/uploads/2024/01/image.png)
Next, select Buckets » Create:
![Create-Google-Cloud-Bucket - Duplicator - Duplicator Create Google Cloud bucket](https://duplicator.com/wp-content/uploads/2023/09/Create-Google-Cloud-Bucket.png)
![New-GC-Bucket - Duplicator - Duplicator New Google Cloud bucket](https://duplicator.com/wp-content/uploads/2023/09/New-GC-Bucket.png)
Next, choose the appropriate region where you want to store your data:
![GC-Bucket-Region - Duplicator - Duplicator Google Cloud bucket region](https://duplicator.com/wp-content/uploads/2023/09/GC-Bucket-Region.png)
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: Standard, Nearline, Coldline, and Archive. Choose one based on how often you plan to access your backups:
![GC-Bucket-Storage-Class - Duplicator - Duplicator Google Cloud storage class](https://duplicator.com/wp-content/uploads/2023/09/GC-Bucket-Storage-Class.png)
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:
![GC-Bucket-Access-Control - Duplicator - Duplicator Google Cloud access control](https://duplicator.com/wp-content/uploads/2023/09/GC-Bucket-Access-Control.png)
Under Protection tools, choose None or Object versioning:
![GC-Bucket-Protection - Duplicator - Duplicator Google Cloud bucket protection](https://duplicator.com/wp-content/uploads/2023/09/GC-Bucket-Protection.png)
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 - Duplicator - Duplicator Google Cloud settings](https://duplicator.com/wp-content/uploads/2023/09/Google-Cloud-Settings.png)
Click on the Interoperability tab. Here, hit Create a key for a service account:
![GC-Interoperability - Duplicator - Duplicator Google Cloud interoperability](https://duplicator.com/wp-content/uploads/2023/09/GC-Interoperability.png)
In the pop-up, create a new service account:
![Create-Google-Cloud-Service-Account - Duplicator - Duplicator Create Google Cloud service account](https://duplicator.com/wp-content/uploads/2023/09/Create-Google-Cloud-Service-Account.png)
Enter an account ID and description:
![GC-New-Service-Account - Duplicator - Duplicator Google Cloud service account ID](https://duplicator.com/wp-content/uploads/2023/09/GC-New-Service-Account.png)
For the Role, select Owner:
![Service-Account-Owner-Role - Duplicator - Duplicator Service account owner](https://duplicator.com/wp-content/uploads/2023/09/Service-Account-Owner-Role.png)
Once you finish creating a service account, you’ll automatically get new access keys:
![Google-Cloud-Access-Keys - Duplicator - Duplicator Google Cloud access keys](https://duplicator.com/wp-content/uploads/2023/09/Google-Cloud-Access-Keys.png)
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-Storage-Location - Duplicator - Duplicator Add new storage location](https://duplicator.com/wp-content/uploads/2023/03/Add-Storage-Location.png)
Then, name the new storage location and select Google Cloud Storage as the Type:
![Add-GC-Storage-Location - Duplicator - Duplicator Google Cloud storage location](https://duplicator.com/wp-content/uploads/2023/09/Add-GC-Storage-Location.png)
Scroll down to the Authorization section. Paste your access and secret keys:
![Duplicator-Google-Cloud-Authorization - Duplicator - Duplicator Duplicator Google Cloud authorization](https://duplicator.com/wp-content/uploads/2023/09/Duplicator-Google-Cloud-Authorization.png)
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:
![GC-Disable-ACL - Duplicator - Duplicator Google Cloud storage settings](https://duplicator.com/wp-content/uploads/2023/09/GC-Disable-ACL.png)
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.