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
| Flag | Default | Description |
|---|---|---|
--compression | Compression: gzip, zstd, none | |
--destination | Storage destination the backups land in (id) | |
--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