dtctl backup restore
Usage
dtctl backup restore <id> [flags]
Aliases
r
Description
Restore a backup into a new volume, giving the new volume a name and storage policy.
Example
dtctl backup restore <backup-id> --volume-name restored --volume-type default
Response
In text output (the default), this command returns the following columns: Backup ID, Volume ID, Volume Name.
Pass --output json to get the full response object instead.
Flags
| Option | Description |
|---|---|
--volume-name, -n | Name for the restored volume (required) |
--volume-type, -t | Storage policy name for the restored volume, e.g. HI-IOPS (see 'dtctl volume storage-policies') (required) |
Related Commands
| Command | Description |
|---|---|
| dtctl backup list | List backups |
| dtctl backup show | Show a backup |
| dtctl backup create | Create a backup |
| dtctl backup update | Rename a backup |
| dtctl backup delete | Delete a backup |
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 |