dtctl snapshot create-volume
Usage
dtctl snapshot create-volume [flags]
Aliases
cv
Description
Create a new volume from a snapshot.
Example
dtctl snapshot create-volume --snapshot-id <snapshot-id> --volume-name restored --volume-size 20 --volume-type default
Flags
| Option | Description |
|---|---|
--snapshot-id, -i | ID of the snapshot to create the volume from (required) |
--volume-name, -n | Name for the new volume (required) |
--volume-size, -s | Size of the new volume in GB (required) |
--volume-type, -t | Storage policy name for the new volume, e.g. HI-IOPS (see 'dtctl volume storage-policies') (required) |
Related Commands
| Command | Description |
|---|---|
| dtctl snapshot list | List snapshots |
| dtctl snapshot show | Show a snapshot |
| dtctl snapshot create | Create a snapshot |
| dtctl snapshot create-image | Create an image 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 |