Score:0

Google Cloud Snapshot schedule

cn flag

I'm trying to understand the difference between machine image, snapshot, and image on Google cloud.

For example, I've configured the snapshot schedule and it is set to auto delete every 7 days.

  1. If I delete the source disk, will it stop the snapshot schedule automatically?
  2. Snapshot is taken incrementally. If I deleted the source disk and earlier snapshots, will I still be able to restore with the latest snapshot?
  3. Probably similar to question 2, if I create an instance from the latest snapshot and the 1st snapshot is already deleted, will the new instance still include everything up to date?

Thanks

Score:0
ht flag

A machine image is a Compute Engine resource that stores all the configuration, metadata, permissions, and data from multiple disks of a virtual machine (VM) instance. You can use a machine image in many system maintenance, backup and recovery, and instance cloning scenarios.

Snapshots incrementally back up data from your persistent disks. After you create a snapshot to capture the current state of the disk, you can use it to restore that data to a new disk. Compute Engine stores multiple copies of each snapshot across multiple locations with automatic checksums to ensure the integrity of your data.

You can create snapshots from disks even while they are attached to running virtual machine (VM) instances. The lifecycle of a snapshot created from a disk attached to a running VM instances is independent of the lifecycle of the VM instance.

A custom image is a boot disk image that you own and control access to. Use custom images for the following tasks:

  • Import a boot disk image to Compute Engine from your on-premises environment, or import virtual disks from VMs that are running on your local workstation or on another cloud platform.

  • Create an image from the boot disks of your existing Compute Engine instances. Then use that image to create new boot disks for your instances. This process lets you to create new instances that are preconfigured with the apps that you need without having to configure a public image from scratch.

  • Copy one image to another image by using either the gcloud tool or the API. Use the same process that you use to create an image, but specify another image as the image source. You can also create an image from a custom image in a different project.

Note that snapshots are different from custom images and machine images, which are useful for creating instance boot disks. You can see the link with a comparative table.

https://cloud.google.com/compute/docs/machine-images#when-to-use

cn flag
Thanks. Do you mind to shed lights on questions 1-3 to provide a fuller answer?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.