hardgcloud

Create a snapshot of a Compute Engine persistent disk

command

gcloud compute snapshots create SNAPSHOT_NAME --source-disk DISK --source-disk-zone ZONE

also accepted

gcloud compute snapshots create

Command breakdown

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

gcloudcomputesnapshotscreateSNAPSHOT_NAME--source-diskDISK--source-disk-zoneZONE
FlagPurpose
--source-diskBoolean flag
--source-disk-zoneBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →