Skip to main content

dtctl backup-plan update

Usage​

dtctl backup-plan update <backup_plan_id> [flags]

Aliases​

u

Description​

Update a backup plan's name, description, recovery points, or schedule.

Example​

dtctl backup-plan update --backup-plan-id <backup-plan-id> --name nightly --recovery-points 7 --schedule-month 1,2,3,4,5,6,7,8,9,10,11,12 --schedule-day-of-week 1,2,3,4,5 --schedule-day 1 --schedule-hour 23 --schedule-minute 00

Flags​

OptionDescription
--backup-plan-id, -iID of the backup plan to update (required)
--description, -dNew description of the backup plan
--name, -nNew name of the backup plan
--recovery-points, -rNumber of recovery points to keep (required)
--schedule-day, -aComma-separated days of month (1-31) to run on (required)
--schedule-day-of-week, -wComma-separated days of week (0-6) to run on (required)
--schedule-hour, -kHour to run at. One of: 19, 20, 21, 22, 23, 00 (required)
--schedule-minute, -tMinute to run at. One of: 00, 30 (required)
--schedule-month, -mComma-separated months (1-12) to run on (required)
CommandDescription
dtctl backup-plan listList backup plans
dtctl backup-plan showShow a backup plan
dtctl backup-plan createCreate a backup plan
dtctl backup-plan deleteDelete a backup plan
dtctl backup-plan add-volumesAdd volumes to a plan
dtctl backup-plan disableEnable or disable a backup plan
dtctl backup-plan remove-volumesRemove volumes from a plan
dtctl backup-plan volumesList a plan's volumes

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