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 90

Flags

FlagDefaultDescription
--compressionCompression: gzip, zstd, none
--keep-lastAlways keep this many of the newest backups, however old they are
--methodDump method: logical_dump, physical, pitr
--namePolicy name
--retention-daysDelete backups older than this many days, except the newest --keep-last ones (0 keeps every backup)
--scheduleWhen to back up, as a cron expression ("0 2 * * *" is 02:00 every day)
--timezoneTime 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

On this page