Skip to main content

Command Palette

Search for a command to run...

Machine Image vs Snapshot in GCP

Published
•1 min read

Learning Note: Machine Images vs Snapshots in GCP

🔹 What I Learned Today

I explored the concept of Machine Images in Google Cloud Platform (GCP) and how they differ from Snapshots.

🔹 Snapshots

  • Definition: A snapshot is a backup of a persistent disk.

  • Scope: Disk-level only (captures the data of one disk).

  • Nature:

    • First snapshot = full copy of used data.

    • Subsequent snapshots = incremental (only changes are saved).

Use Cases: Backup of a single disk.

  • Restoring a VM’s disk to a previous state.

  • Creating new disks with the same data.

🔹 Machine Images

  • Definition: A machine image is a complete VM backup that includes:

    • One or more disks (boot + data disks).

    • VM configuration (machine type, network tags, metadata, etc.).

    • IAM permissions.

  • Scope: Full VM, not just a disk.

  • Nature: Always a complete image, not incremental.

  • Use Cases:

    • Cloning or replicating entire VMs.

    • Creating multiple instances with the same setup.

    • Backup before major changes (OS updates, software upgrades).

Summary

  • Snapshots = Best for protecting data on a disk.

  • Machine Images = Best for backing up or cloning an entire VM environment.

  • Both are useful depending on whether I need just disk-level recovery or a full VM restore/replication.