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
- Overview (0:00)
- Stop the VM (0:11)
- Stopped (0:16)
- Create snapshot (0:20)
- Ready (0:33)
- Boot from the snapshot (0:39)
- Running (0:48)
- Everything is there (0:51)
- 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.