How To Backup & Restore Websites on Google Cloud 2020

If you are running WordPress on Google Cloud Platform, it’s very important to have regular backups of your website. Not only does it let you manually take a backup, but it can also automatically backup your website on a schedule of your choosing, as well as easily restore a backup with just a few clicks, in emergency.

In this tutorial, you will learn how to backup and restore websites hosted on Google Cloud Platform.

If your website ever goes down on Google Cloud, you can restore it quickly.

Backup a Website

Creating a Disk Snapshots

To create a Snapshot of the persistent disk, in which your website has been stored. Follow these steps to take a snapshot of a persistent disk.

Important: The first snapshot is going to be the biggest so this snapshot contains all of the information on your disk and then each snapshot after that includes only the new content that was added since the initial content since the initial snapshot was taken.

  1. From your Google Cloud Console, click on the hamburger menu in the upper-left corner of the screen.

2. Go to Compute Engine > then click Snapshots.


3. Click on the “CREATE SNAPSHOT” button, from the Snapshots dashboard OR click below direct link.

4. Enter a Snapshot Name, optionally you can enter Description, select the Source Disk from the drop-down list that you want to backup. Determine your Snapshot storage location. You can use the default or custom storage location.

  • Under location, select whether you want to store your snapshot in a Multi-regional location or a Regional location.
  • Select which specific region or multi-region that you want to use. To use the region or multi-region that is closest to your source disk, select Based on disk’s location (default).

Finally, click the Create button to create a backup.

5. It will take a moment, and after snapshot creation, it will appear on your Snapshots dashboard.


Restore a Website

1. Creating Instance from Disk Snapshot

In this section of tutorial, you will learn how to restore your website from a Snapshot.

Important: In order to restore your website from a snapshot, the snapshot needs to have been created when the website was operating correctly. In other words, you can’t take a snapshot of a broken website, restore it, and expect it to work correctly.

So let’s say our WordPress website breaks and we need to restore it from one of the snapshots we took earlier.


If your website is down, and you need to quickly restore it, follow the steps below.

From your Google Cloud dashboard, navigate to Compute Engine then VM Instances.

On your VM Instances dashboard, click on the CREATE INSTANCE button at the top of the page.

On the Create an Instance settings page, click on the button to change your boot disk.

In the popup window, go to the Snapshots tab at the top of the page, and select the Snapshot that you created in the Create a Backup section of this tutorial.

After selecting the Boot disk, check the boxes for both Allow HTTP traffic and Allow HTTPS traffic, then click the Create button at the bottom of the page.

If your instance was created successfully, it will appear in your Compute Engine dashboard.


2. Assign IP Address to New Instance

In this section of the tutorial, you will learn how to configure your website’s network settings to redirect traffic to the new instance.

From the Google Cloud sidebar menu, navigate to Network services, then External IP addresses.

From your External IP Addresses dashboard, click on the Change button next to the IP address attached to the instance that’s running your broken website.

In the Attach IP address pop-up, select the restored instance from the Attach to drop-down menu, then click the OK button.

After changing your network settings, you should notice that your static IP address is now attached to the restored instance. Now that you’ve restored your website, you should be able to view it in your browser!

Final thoughts on how to backup and restore Websites on Google Cloud

That’s it! Now you know how to backup and restore websites on Google Cloud Platform. To reduce the risk of unexpected data loss, consider the best practice of setting up a snapshot schedule to ensure your data is backed up on a regular schedule.

For best practice, you should follow these steps before creating snapshots.

Please ask any questions in the comments below!

More Stories
Telegram Mod Apk – Telegraph Messenger vT6.1.1 – P7.8.1