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
| Option | Description |
|---|---|
--backup-plan-id, -i | ID of the backup plan to update (required) |
--description, -d | New description of the backup plan |
--name, -n | New name of the backup plan |
--recovery-points, -r | Number of recovery points to keep (required) |
--schedule-day, -a | Comma-separated days of month (1-31) to run on (required) |
--schedule-day-of-week, -w | Comma-separated days of week (0-6) to run on (required) |
--schedule-hour, -k | Hour to run at. One of: 19, 20, 21, 22, 23, 00 (required) |
--schedule-minute, -t | Minute to run at. One of: 00, 30 (required) |
--schedule-month, -m | Comma-separated months (1-12) to run on (required) |
Related Commands
| Command | Description |
|---|---|
| dtctl backup-plan list | List backup plans |
| dtctl backup-plan show | Show a backup plan |
| dtctl backup-plan create | Create a backup plan |
| dtctl backup-plan delete | Delete a backup plan |
| dtctl backup-plan add-volumes | Add volumes to a plan |
| dtctl backup-plan disable | Enable or disable a backup plan |
| dtctl backup-plan remove-volumes | Remove volumes from a plan |
| dtctl backup-plan volumes | List a plan's volumes |
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 |