dtctl snapshot create
Usage
dtctl snapshot create [flags]
Aliases
c
Description
Create a point-in-time snapshot of a volume.
Example
dtctl snapshot create --name snap-1 --volume-id <volume-id>
Response
In text output (the default), this command returns the following columns: ID, Name, Description, Size, Status, Volume ID, Volume Type ID, Created At, Updated At.
Pass --output json to get the full response object instead.
Flags
| Option | Description |
|---|---|
--name, -n | Name of the snapshot (required) |
--volume-id, -v | ID of the volume to snapshot (required) |
Related Commands
| Command | Description |
|---|---|
| dtctl snapshot list | List snapshots |
| dtctl snapshot show | Show a snapshot |
| dtctl snapshot create-image | Create an image from a snapshot |
| dtctl snapshot create-volume | Create a volume from a snapshot |
| dtctl snapshot update | Update a snapshot |
| dtctl snapshot delete | Delete a snapshot |
Global Flags
| Option | Description |
|---|---|
--api-url | Send this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1") |
--config, -c | Specify a custom config file Default: ~/.config/dtctl/config.yaml |
--no-headers | Omit the column headers, for scripting Default: false |
--output, -o | Output format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line Default: text |