Stay organized with collections Save and categorize content based on your preferences.
gcloud compute snapshots create
NAME
[--async
] [--chain-name
=CHAIN_NAME
] [--csek-key-file
=FILE
] [--description
=DESCRIPTION
] [--guest-flush
] [--labels
=[KEY
=VALUE
,…]] [--snapshot-type
=SNAPSHOT_TYPE
] [--source-disk
=SOURCE_DISK
] [--source-disk-for-recovery-checkpoint
=SOURCE_DISK_FOR_RECOVERY_CHECKPOINT
] [--source-disk-for-recovery-checkpoint-region
=SOURCE_DISK_FOR_RECOVERY_CHECKPOINT_REGION
] [--source-disk-key-file
=FILE
] [--source-instant-snapshot
=SOURCE_INSTANT_SNAPSHOT
] [--source-instant-snapshot-key-file
=FILE
] [--storage-location
=LOCATION
] [--source-disk-region
=SOURCE_DISK_REGION
| --source-disk-zone
=SOURCE_DISK_ZONE
] [--source-instant-snapshot-region
=SOURCE_INSTANT_SNAPSHOT_REGION
| --source-instant-snapshot-zone
=SOURCE_INSTANT_SNAPSHOT_ZONE
] [GCLOUD_WIDE_FLAG …
]
gcloud compute snapshots create
creates snapshot of persistent disk. Snapshots are useful for backing up persistent disk data and for creating custom images. For more information, see https://cloud.google.com/compute/docs/disks/create-snapshots.
gcloud compute snapshots create my-snap --source-disk=my-disk --source-disk-zone=us-east1-a
NAME
--async
--chain-name
=CHAIN_NAME
--csek-key-file
=FILE
If you pass -
as value of the flag, the CSEK is read from stdin. See https://cloud.google.com/compute/docs/disks/customer-supplied-encryption for more details.
--description
=DESCRIPTION
--guest-flush
--labels
=[KEY
=VALUE
,…]
Keys must start with a lowercase character and contain only hyphens (-
), underscores (_
), lowercase characters, and numbers. Values must contain only hyphens (-
), underscores (_
), lowercase characters, and numbers.
--snapshot-type
=SNAPSHOT_TYPE
SNAPSHOT_TYPE
must be one of: ARCHIVE
, STANDARD
.
--source-disk
=SOURCE_DISK
--source-disk-for-recovery-checkpoint
=SOURCE_DISK_FOR_RECOVERY_CHECKPOINT
--source-disk-for-recovery-checkpoint-region
=SOURCE_DISK_FOR_RECOVERY_CHECKPOINT_REGION
compute/region
property value for this command invocation.
--source-disk-key-file
=FILE
--source-instant-snapshot
=SOURCE_INSTANT_SNAPSHOT
--source-instant-snapshot-key-file
=FILE
--storage-location
=LOCATION
--source-disk-region
=SOURCE_DISK_REGION
compute/region
property value for this command invocation.
--source-disk-zone
=SOURCE_DISK_ZONE
compute/zone
property value for this command invocation.
--source-instant-snapshot-region
=SOURCE_INSTANT_SNAPSHOT_REGION
compute/region
property value for this command invocation.
--source-instant-snapshot-zone
=SOURCE_INSTANT_SNAPSHOT_ZONE
compute/zone
property value for this command invocation.
--access-token-file
, --account
, --billing-project
, --configuration
, --flags-file
, --flatten
, --format
, --help
, --impersonate-service-account
, --log-http
, --project
, --quiet
, --trace-token
, --user-output-enabled
, --verbosity
.
Run $ gcloud help
for details.
gcloud alpha compute snapshots create
gcloud beta compute snapshots create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4