easygcloud

Create a new Compute Engine disk from an existing snapshot

command

gcloud compute disks create restored-disk --source-snapshot=data-server-snapshot --zone=us-east1-b

Command breakdown

Part of the Google Cloud CLI (gcloud) — Compute Engine category.

gcloudcomputediskscreaterestored-disk--source-snapshot=data-server-snapshot--zone=us-east1-b
FlagPurpose
--source-snapshotSet to: data-server-snapshot
--zoneSet to: us-east1-b

Test your recall — not just your reading.

Practice with interactive quiz →