Google Cloud snapshots

Google Cloud Nightscout » Snapshots

Creating a snapshot of your virtual machine (VM) disk on Google Cloud (note: this is not free) can be a helpful tool for managing your environment. If you encounter issues while experimenting, you can restore the snapshot to revert the disk to its state at the time the snapshot was created. However, keep in mind that any data added to the database after the snapshot was taken will be lost. Therefore, use this utility with that consequence in mind.


Creating a Snapshot
Follow these steps to create a snapshot of your virtual machine disk:
1- Navigate to the Compute Engine page and click on Snapshots in the left-hand pane.

2- Click on Create Snapshot at the top of the page.

3- From the drop-down menu under “Source disk”, select the disk associated with your virtual machine.

4- Assign a name (use lowercase letters only) to the snapshot so it’s easy to identify later.

5- Click “Create” at the bottom of the page.


Snapshot Costs
Keep in mind that creating and storing snapshots incurs costs. Be sure to monitor your usage and budget accordingly.


Restoring a Snapshot
Let’s walk through the steps to restore a snapshot.

1- If you plan to delete your current machine:

2- Click on Create Instance.

3- Select a region:

4- Choose e2-micro as the machine type.

5- Under Boot disk, click on Change.

6- Under Firewall Options, enable Allow HTTP traffic and Allow HTTPS traffic.

7- Click Create at the bottom of the page. Wait for the instance to be created.

8- Once the machine is created, click on SSH to open the terminal and access the menu.

9- Use the Status option in the terminal to verify that your machine complies with free tier settings.