doctl compute volume snapshot

Go to Navigation

Usage

doctl compute volume snapshot <volume-id> [flags]

Aliases

s

Description

Use this command to create a snapshot of a block storage volume by ID.

You can use a block storage volume snapshot ID as a flag with doctl volume create to create a new block storage volume with the same data as the volume the snapshot was taken from.

Flags

OptionDescription
--formatColumns for output in a comma-separated list. Possible values: ID, Name, Size, Region, Filesystem Type, Filesystem Label, DropletIDs, Tags
--help, -hHelp for this command
--no-headerReturn raw data with no headers
Default: false
--snapshot-descSnapshot description
--snapshot-nameSnapshot name (required)
--tagTags to apply to the snapshot; comma separate or repeat --tag to add multiple tags at once
CommandDescription
doctl compute volumeDisplay commands to manage block storage volumes

Global Flags

OptionDescription
--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
Default:
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false