Plans
Protection plans: what is protected, under which policy.
plan create
Create a protection plan.
The schedule and retention come from the policy the plan names (see
openstack backup policy list). A disk left out with --exclude-disk
makes every backup of the plan partial. A workload the service can protect
only in part is refused unless --accept-partial-coverage names its digest.
openstack backup plan create <name> --resource-kind <kind> --resource <id> \
--policy <policy> [--encryption <mode>] [--consistency <level>] \
[--exclude-disk <id[:locator]>] [--property <key=value>] \
[--accept-partial-coverage <digest>]
| Argument | Description |
|---|---|
<name> | Plan name. |
--resource-kind <kind> | Volume, instance or bucket. Required. |
--resource <id> | Resource to protect (repeatable) Required. |
--policy <policy> | Protection policy this plan runs under, by name or id. Required. |
--encryption <mode> | Barbican (own key and isolated storage) or none (unencrypted) One of barbican, none. |
--consistency <level> | Filesystem (freeze the guest) or crash, not for buckets. One of crash, filesystem. |
--exclude-disk <id[:locator]> | Disk to leave out, as resource-id[:locator] (repeatable) |
--property <key=value> | Label copied onto every backup this plan writes (repeatable) |
--accept-partial-coverage <digest> | Accept partial coverage by the digest from the 409 or resource list. |
plan delete
Delete one or more protection plans.
The plan enters the repository's soft-delete grace. It is hidden from listings and an operator can undelete it until the grace elapses. A plan under a mandatory policy is refused.
openstack backup plan delete <plan> [<plan> ...]
| Argument | Description |
|---|---|
<plan> | Plan, by name or id. Takes one or more. |
plan exception list
List a plan's exceptions: what it does not fully protect, and why.
Each exception's disposition is refused, at_cost or degraded. Exceptions stay on the plan, including degradations found after creation such as fast-diff becoming unavailable.
openstack backup plan exception list <plan>
| Argument | Description |
|---|---|
<plan> | Plan, by name or id. |
plan list
List protection plans.
openstack backup plan list [--enabled] [--resource-kind <kind>] \
[--limit <limit>] [--project <project>]
| Argument | Description |
|---|---|
--enabled | Only enabled plans. |
--resource-kind <kind> | Volume, instance or bucket. |
--limit <limit> | Maximum plans returned. |
--project <project> | Filter by project (operator) |
plan missed backup list
List a plan's missed backups: scheduled times that produced none.
A backup that cannot start inside the policy's start_within is
recorded as missed, not queued. The reason names the cause: the window, a
deleted or retired policy, or a policy naming storage it cannot use.
openstack backup plan missed backup list <plan> [--limit <limit>]
| Argument | Description |
|---|---|
<plan> | Plan, by name or id. |
--limit <limit> | Maximum missed backups returned. |
plan set
Update a protection plan.
A tenant may change the name, the resources, the disks left out, whether the plan runs, and the policy among those offered to the project. A move to a weaker policy, or off a mandatory one, needs an operator.
openstack backup plan set <plan> [--name <name>] [--enable] [--disable] \
[--policy <policy>] [--consistency <level>] [--resource <id>] \
[--exclude-disk <id[:locator]>] [--property <key=value>] \
[--accept-partial-coverage <digest>]
| Argument | Description |
|---|---|
<plan> | Plan, by name or id. |
--name <name> | New plan name. |
--enable | Resume taking backups. |
--disable | Stop taking backups, refused for a tenant under a mandatory policy. |
--policy <policy> | Protection policy this plan runs under, by name or id. |
--consistency <level> | Filesystem (freeze the guest) or crash, not for buckets. One of crash, filesystem. |
--resource <id> | Replace the protected resource list (repeatable) |
--exclude-disk <id[:locator]> | Disk to leave out, replacing the selection (repeatable) |
--property <key=value> | Set a label on the backups the plan writes next (repeatable) |
--accept-partial-coverage <digest> | Accept partial coverage of the new --resource set, by digest. |
plan show
Show a protection plan, its policy, and any exceptions it carries.
openstack backup plan show <plan>
| Argument | Description |
|---|---|
<plan> | Plan, by name or id. |
plan sla show
Show a plan's protection SLA: what the policy promised against what it did.
openstack backup plan sla show <plan>
| Argument | Description |
|---|---|
<plan> | Plan, by name or id. |
plan undelete
Lift a plan's soft delete (operator).
Brings back the plan and everything still inside its grace. A plan whose grace has elapsed is reported as gone.
openstack backup plan undelete <plan>
| Argument | Description |
|---|---|
<plan> | Plan, by name or id. |
plan unset
Clear fields of a protection plan.
openstack backup plan unset <plan> [--exclude-disk] [--consistency] \
[--property <key>]
| Argument | Description |
|---|---|
<plan> | Plan, by name or id. |
--exclude-disk | Protect every disk again. |
--consistency | Use this cloud's default consistency. |
--property <key> | Drop a label from the backups the plan writes next (repeatable) |