|
| 1 | +## stackit mongodbflex backup update-schedule |
| 2 | + |
| 3 | +Updates the backup schedule and retention policy for a MongoDB Flex instance |
| 4 | + |
| 5 | +### Synopsis |
| 6 | + |
| 7 | +Updates the backup schedule and retention policy for a MongoDB Flex instance. |
| 8 | +The current backup schedule and retention policy can be seen in the output of the "stackit mongodbflex backup schedule" command. |
| 9 | +The backup schedule is defined in the cron scheduling system format e.g. '0 0 * * *'. |
| 10 | +See below for more detail on the retention policy options. |
| 11 | + |
| 12 | +``` |
| 13 | +stackit mongodbflex backup update-schedule [flags] |
| 14 | +``` |
| 15 | + |
| 16 | +### Examples |
| 17 | + |
| 18 | +``` |
| 19 | + Update the backup schedule of a MongoDB Flex instance with ID "xxx" |
| 20 | + $ stackit mongodbflex backup update-schedule --instance-id xxx --schedule '6 6 * * *' |
| 21 | +
|
| 22 | + Update the retention days for snapshots of a MongoDB Flex instance with ID "xxx" to 5 days |
| 23 | + $ stackit mongodbflex backup update-schedule --instance-id xxx --save-snapshot-days 5 |
| 24 | +``` |
| 25 | + |
| 26 | +### Options |
| 27 | + |
| 28 | +``` |
| 29 | + -h, --help Help for "stackit mongodbflex backup update-schedule" |
| 30 | + --instance-id string Instance ID |
| 31 | + --save-daily-snapshot-days int Number of days to retain daily snapshots. Should be less than or equal to the number of days of the selected weekly or monthly value. |
| 32 | + --save-monthly-snapshot-months int Number of months to retain monthly snapshots |
| 33 | + --save-snapshot-days int Number of days to retain snapshots. Should be less than or equal to the value of the daily backup. |
| 34 | + --save-weekly-snapshot-weeks int Number of weeks to retain weekly snapshots. Should be less than or equal to the number of weeks of the selected monthly value. |
| 35 | + --schedule string Backup schedule, in the cron scheduling system format e.g. '0 0 * * *' |
| 36 | +``` |
| 37 | + |
| 38 | +### Options inherited from parent commands |
| 39 | + |
| 40 | +``` |
| 41 | + -y, --assume-yes If set, skips all confirmation prompts |
| 42 | + --async If set, runs the command asynchronously |
| 43 | + -o, --output-format string Output format, one of ["json" "pretty" "none"] |
| 44 | + -p, --project-id string Project ID |
| 45 | + --verbosity string Verbosity of the CLI, one of ["debug" "info" "warning" "error"] (default "info") |
| 46 | +``` |
| 47 | + |
| 48 | +### SEE ALSO |
| 49 | + |
| 50 | +* [stackit mongodbflex backup](./stackit_mongodbflex_backup.md) - Provides functionality for MongoDB Flex instance backups |
| 51 | + |
0 commit comments