Skip to main content

Policies

Protection policies: the service levels plans run under.

policy assign​

Offer a policy to domains and projects (operator).

openstack backup policy assign <policy> [--project <project>] \
[--domain <domain>]
ArgumentDescription
<policy>Policy name or id.
--project <project>Project id (repeatable)
--domain <domain>Domain id, covering all its projects (repeatable)

policy create​

Write a protection policy (operator).

A policy states the schedule, the retention ladder, the storage tiers and the recovery objectives that plans name. A ladder shorter than the backup repository's lock floor is refused, not clamped.

openstack backup policy create <name> [--description <text>] \
[--visibility <visibility>] [--mandatory] [--verify-every <duration>] \
[--every <duration>] [--cron <expr>] [--at <HH:MM>] \
[--window-start <HH:MM>] [--window-end <HH:MM>] [--jitter <duration>] \
[--start-within <duration>] [--keep-all <duration>] \
[--keep-daily <count>] [--keep-weekly <count>] [--keep-monthly <count>] \
[--keep-yearly <count>] [--calendar <key=value>] \
--backup-repository <repository> [--instant-repository <repository>] \
[--instant-within <duration>] [--copy-repository <repository>] \
[--copy-keep <tier=value>] [--recovery-site <site>] \
[--recovery-tier <tier>] [--transport <transport>] \
[--rpo-target <duration>] [--rto-target <duration>] \
[--test-every <duration>]
ArgumentDescription
<name>Policy name.
--description <text>What this service level is for.
--visibility <visibility>Public (any project may name it) or assigned. One of public, assigned.
--mandatoryA tenant may not pause, delete or downgrade a plan under this policy.
--verify-every <duration>How often to verify each plan's newest backup, e.g. 720h.
--every <duration>Cadence, 15m to 168h, a divisor of 24h when under a day.
--cron <expr>Cron expression instead of --every, e.g. '0 2 * * 1-5'.
--at <HH:MM>Phase for a cadence of a day or longer, site-local.
--window-start <HH:MM>Earliest time a tick may run.
--window-end <HH:MM>Latest time a tick may run.
--jitter <duration>Random spread of start times across plans, e.g. 30m.
--start-within <duration>A tick not started within this is missed, not queued, e.g. 2h.
--keep-all <duration>Keep every backup for this long.
--keep-daily <count>Daily backups to keep, the first in each calendar period.
--keep-weekly <count>Weekly backups to keep, the first in each calendar period.
--keep-monthly <count>Monthly backups to keep, the first in each calendar period.
--keep-yearly <count>Yearly backups to keep, the first in each calendar period.
--calendar <key=value>Period grid, repeatable: week=sunday, month=first|last, year=january.
--backup-repository <repository>Chunk repository every backup is written to, by name or id. Required.
--instant-repository <repository>Rbd tier that keeps recent backups restorable by clone.
--instant-within <duration>How long a backup stays on the instant tier, e.g. 168h.
--copy-repository <repository>Second chunk repository every committed backup is copied to.
--copy-keep <tier=value>Ladder for the copy, repeatable: all=<duration>, daily=7, monthly=12.
--recovery-site <site>Recovery site, by name or id (openstack backup site list)
--recovery-tier <tier>Cold (copy readable), warm (standby) or hot (mirror) One of cold, warm, hot.
--transport <transport>Rbd-mirror (hot) or repository (cold, warm), default by tier. One of rbd-mirror, repository.
--rpo-target <duration>Recovery point objective, at least the cadence for cold or warm.
--rto-target <duration>Recovery time objective, e.g. 30m.
--test-every <duration>Cadence of test failovers, e.g. 720h.

policy delete​

Delete a policy no plan has ever named (operator).

Deleting is for a draft, not for a policy in service: one with a live plan under it, or with a plan still inside its delete grace, is refused and named. Retire it onto a successor instead.

openstack backup policy delete <policy> [<policy> ...]
ArgumentDescription
<policy>Policy name or id. Takes one or more.

policy deprecate​

Deprecate a policy: no new plan may name it, existing plans run on.

openstack backup policy deprecate <policy>
ArgumentDescription
<policy>Policy name or id.

policy list​

List protection policies.

A tenant sees the policies offered to the project, each with its summary. An operator sees all of them. openstack backup policy show prints the spec.

openstack backup policy list [--status <status>] [--blocked] \
[--limit <limit>] [--view <view>]
ArgumentDescription
--status <status>Active, deprecated or retired. One of active, deprecated, retired.
--blockedOnly policies with blockers, naming something they cannot use.
--limit <limit>Maximum policies returned.
--view <view>Tenant: render as a tenant sees it, without repository-wide figures. One of tenant.

policy retire​

Retire a policy, moving every plan under it to a successor.

Retiring needs either no plans at all or a successor that is not weaker: a shorter keep all, an unlocked repository where the old one was locked, or a lower recovery tier is refused by name. Backups keep their dates through the move.

openstack backup policy retire <policy> [--successor <policy>]
ArgumentDescription
<policy>Policy name or id.
--successor <policy>Policy every plan is moved to, by name or id.

policy set​

Edit a protection policy (operator).

An edit applies forward: every backup already written keeps its expiry and its lock. --apply re-derives the expiry of every unlocked backup under the policy, and shortening one is a separately granted action. Run openstack backup retention simulate first to see what it frees.

openstack backup policy set <policy> [--name <name>] [--description <text>] \
[--visibility <visibility>] [--mandatory] [--no-mandatory] [--apply] \
[--verify-every <duration>] [--every <duration>] [--cron <expr>] \
[--at <HH:MM>] [--window-start <HH:MM>] [--window-end <HH:MM>] \
[--jitter <duration>] [--start-within <duration>] \
[--keep-all <duration>] [--keep-daily <count>] [--keep-weekly <count>] \
[--keep-monthly <count>] [--keep-yearly <count>] \
[--calendar <key=value>] [--backup-repository <repository>] \
[--instant-repository <repository>] [--instant-within <duration>] \
[--copy-repository <repository>] [--copy-keep <tier=value>] \
[--recovery-site <site>] [--recovery-tier <tier>] \
[--transport <transport>] [--rpo-target <duration>] \
[--rto-target <duration>] [--test-every <duration>]
ArgumentDescription
<policy>Policy name or id.
--name <name>New policy name.
--description <text>New description.
--visibility <visibility>Public (any project may name it) or assigned. One of public, assigned.
--mandatoryMake the policy mandatory.
--no-mandatoryMake the policy not mandatory.
--applyRe-derive the expiry of every unlocked backup under this policy.
--verify-every <duration>How often to verify each plan's newest backup, e.g. 720h.
--every <duration>Cadence, 15m to 168h, a divisor of 24h when under a day.
--cron <expr>Cron expression instead of --every, e.g. '0 2 * * 1-5'.
--at <HH:MM>Phase for a cadence of a day or longer, site-local.
--window-start <HH:MM>Earliest time a tick may run.
--window-end <HH:MM>Latest time a tick may run.
--jitter <duration>Random spread of start times across plans, e.g. 30m.
--start-within <duration>A tick not started within this is missed, not queued, e.g. 2h.
--keep-all <duration>Keep every backup for this long.
--keep-daily <count>Daily backups to keep, the first in each calendar period.
--keep-weekly <count>Weekly backups to keep, the first in each calendar period.
--keep-monthly <count>Monthly backups to keep, the first in each calendar period.
--keep-yearly <count>Yearly backups to keep, the first in each calendar period.
--calendar <key=value>Period grid, repeatable: week=sunday, month=first|last, year=january.
--backup-repository <repository>Chunk repository every backup is written to, by name or id.
--instant-repository <repository>Rbd tier that keeps recent backups restorable by clone.
--instant-within <duration>How long a backup stays on the instant tier, e.g. 168h.
--copy-repository <repository>Second chunk repository every committed backup is copied to.
--copy-keep <tier=value>Ladder for the copy, repeatable: all=<duration>, daily=7, monthly=12.
--recovery-site <site>Recovery site, by name or id (openstack backup site list)
--recovery-tier <tier>Cold (copy readable), warm (standby) or hot (mirror) One of cold, warm, hot.
--transport <transport>Rbd-mirror (hot) or repository (cold, warm), default by tier. One of rbd-mirror, repository.
--rpo-target <duration>Recovery point objective, at least the cadence for cold or warm.
--rto-target <duration>Recovery time objective, e.g. 30m.
--test-every <duration>Cadence of test failovers, e.g. 720h.

policy show​

Show a protection policy, its summary and its blockers.

openstack backup policy show <policy> [--view <view>]
ArgumentDescription
<policy>Policy name or id.
--view <view>Tenant: render as a tenant sees it, without repository-wide figures. One of tenant.

policy unassign​

Withdraw a policy from domains and projects (operator).

Plans already under the policy keep running.

openstack backup policy unassign <policy> [--project <project>] \
[--domain <domain>]
ArgumentDescription
<policy>Policy name or id.
--project <project>Project id (repeatable)
--domain <domain>Domain id, covering all its projects (repeatable)

policy unset​

Remove optional blocks from a protection policy (operator).

openstack backup policy unset <policy> [--instant-repository] \
[--copy-repository] [--recovery] [--verify]
ArgumentDescription
<policy>Policy name or id.
--instant-repositoryStop keeping backups on an rbd tier.
--copy-repositoryStop copying backups to a second repository.
--recoveryDrop the recovery site and objectives.
--verifyLeave verification to the service's cadence.