Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



gcloud compute disks snapshot

NAME
gcloud-compute-disks-snapshot - Snapshot Google Compute Engine persistent disks
SYNOPSIS
gcloud compute disks snapshot
  DISK_NAME [DISK_NAME …]
  [--description DESCRIPTION]
  [--format FORMAT]
  [--help]
  [--project PROJECT]
  [--quiet, -q]
  [--snapshot-names SNAPSHOT_NAME [SNAPSHOT_NAME …]]
  [--zone ZONE]
  [-h]
DESCRIPTION
gcloud compute disks snapshot creates snapshots of persistent disks. Snapshots are useful for backing up data or copying a persistent disk.
POSITIONAL ARGUMENTS
DISK_NAME [DISK_NAME …]
The names of the disks to snapshot.
FLAGS
--description DESCRIPTION
An optional, textual description for the snapshots being created.
--format FORMAT
Specify a format for printed output. By default, a command-specific human-friendly output format is used. Setting this flag to one of the available options will serialize the result of the command in the chosen format and print it to stdout. Supported formats are: "json", "text", "yaml".
--help
Display detailed help.
--project PROJECT
Google Cloud Platform project to use for this invocation.
--quiet
Disable all interactive prompts when running gcloud commands. If input is required, defaults will be used, or an error will be raised.
--snapshot-names SNAPSHOT_NAME [SNAPSHOT_NAME …]
Names to assign to the snapshots. Without this option, the name of each snapshot will be a random, 16-character hexadecimal number that starts with a letter. The values of this option run parallel to the disks specified. For example,
$ gcloud compute disks snapshot my-disk-1 my-disk-2 my-disk-3 \
    --snapshot-name snapshot-1 snapshot-2 snapshot-3
will result in “my-disk-1” being snapshotted as “snapshot-1”, “my-disk-2” as “snapshot-2”, and so on.
--zone ZONE
The zone of the disks to snapshot. If not specified, you will be prompted to select a zone.
To avoid prompting when this flag is omitted, you can set the “compute/zone” property:
gcloud config set compute/zone ZONE
A list of zones can fetched by running:
gcloud compute zones list
To unset the property, run:
gcloud config unset compute/zone
Alternatively, the zone can be stored in the environment variable “CLOUDSDK_COMPUTE_ZONE”.
-h
Print a summary help and exit.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.