CLI reference
norcube backup policies update
Change a backup policy
Not verified yet
Changes only the settings you pass. Every data source the policy is attached to follows the new settings from its next run.
Usage
norcube backup policies update <policy-id> [flags]Examples
norcube backup policies update 1a2b3c4d-… --schedule "0 3 * * *"
norcube backup policies update 1a2b3c4d-… --retention-days 90 --keep-last 90Flags
| Flag | Default | Description |
|---|---|---|
--compression | Compression: gzip, zstd, none | |
--keep-last | Always keep this many of the newest backups, however old they are | |
--method | Dump method: logical_dump, physical, pitr | |
--name | Policy name | |
--retention-days | Delete backups older than this many days, except the newest --keep-last ones (0 keeps every backup) | |
--schedule | When to back up, as a cron expression ("0 2 * * *" is 02:00 every day) | |
--timezone | Time zone of the schedule (IANA name, e.g. Europe/Prague or UTC) |
Every command also takes the global flags: --profile, --org, -o, --query, --debug and more.
See also
norcube backup policies: Manage backup policies and their attachments to data sources