CLI reference

norcube backup policies create

Create a backup policy

Not verified yet

Creates a backup policy. It backs nothing up until you attach it to a data source with norcube backup policies attach.

--destination is the storage destination the backups land in; list them with norcube backup destinations list.

Usage

norcube backup policies create [flags]

Examples

norcube backup policies create --name Nightly --schedule "0 2 * * *" --timezone Europe/Prague \
  --retention-days 30 --keep-last 30 --destination 5e6f7a8b-…

Flags

FlagDefaultDescription
--compressionCompression: gzip, zstd, none
--destinationStorage destination the backups land in (id)
--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