Skip to main content

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​

OptionDescription
--volume-name, -nName for the restored volume (required)
--volume-type, -tStorage policy name for the restored volume, e.g. HI-IOPS (see 'dtctl volume storage-policies') (required)
CommandDescription
dtctl backup listList backups
dtctl backup showShow a backup
dtctl backup createCreate a backup
dtctl backup updateRename a backup
dtctl backup deleteDelete a backup

Global Flags​

OptionDescription
--api-urlSend this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1")
--config, -cSpecify a custom config file
Default: ~/.config/dtctl/config.yaml
--no-headersOmit the column headers, for scripting
Default: false
--output, -oOutput format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line
Default: text