Back up and restore a disk

A snapshot is a full, point in time copy of a disk. In this demo, we back up our web server's disk, and restore it to a brand new VM.

Video, 1:08. Compute.

Steps

  1. Overview (0:00)
  2. Stop the VM (0:11)
  3. Stopped (0:16)
  4. Create snapshot (0:20)
  5. Ready (0:33)
  6. Boot from the snapshot (0:39)
  7. Running (0:48)
  8. Everything is there (0:51)
  9. Try it yourself (1:03)

Transcript

A snapshot is a full, point-in-time copy of a disk. In this demo, we back up our web server's disk and restore it to a brand-new VM.

First, stop the VM, so the copy is consistent.

web-1 is now stopped.

Under Storage, open Snapshots and create one. Name it web-1-backup and pick the web-1 disk as the source. The estimate shows what it costs to keep it, per month.

In about a minute, the full 10 GB copy is ready.

Now create a new VM, web-2. For the boot disk source, choose Snapshot, and pick web-1-backup.

Within a minute, web-2 is running.

Open SSH on web-2. The hello page and the nginx web server we installed on web-1 are all here. The restore is complete.