Backups
Backups, their metrics and their records.
create
Take a manual backup now, of a plan or of one resource into a vault.
Returns once the job is queued, and openstack backup job show or
--wait follows it. With --plan it runs under the plan's policy into the
plan's vault, and without it one --resource of --resource-kind goes into
--vault, or into its plan when that plan uses the same vault. A backup into
a vault needs --keep-until within the vault's terms, or --until-deleted
where the vault offers it, and a locked repository erases nothing before
that date.
openstack backup create [--plan <plan>] [--resource <id>] \
[--resource-kind <kind>] [--vault <vault>] [--policy <policy>] \
[--consistency <level>] [--keep-until <timestamp>] [--until-deleted] \
[--force-full] [--wait]
| Argument | Description |
|---|---|
--plan <plan> | Plan to run. |
--resource <id> | The resource to back up, or with --plan a subset (repeatable) |
--resource-kind <kind> | Without --plan: instance or volume. One of instance, volume. |
--vault <vault> | Without --plan: the vault to keep it in. |
--policy <policy> | Policy whose vault keeps it, instead of --vault (without --plan) |
--consistency <level> | Without --plan: filesystem (freeze the guest) or crash. One of filesystem, crash. |
--keep-until <timestamp> | Keep until this RFC 3339 timestamp, e.g. 2027-01-31T23:59:59Z. |
--until-deleted | Keep it until somebody deletes it, where the vault offers that. |
--force-full | Read the whole image instead of a diff. |
--wait | Wait for the backup job(s) to finish. |
delete
Delete one or more backups.
The backup enters the repository's soft-delete grace, where an operator can still undelete it. A locked backup leaves the project's backups and usage at once, and the storage erases it no earlier than its lock date. A backup under a legal hold is refused, as is one under a mandatory policy when the caller is a tenant.
openstack backup delete <backup> [<backup> ...]
| Argument | Description |
|---|---|
<backup> | Backup id. Takes one or more. |
list
List backups.
openstack backup list [--plan <plan>] [--resource <id>] [--status <status>] \
[--limit <limit>] [--project <project>] [--view <view>]
| Argument | Description |
|---|---|
--plan <plan> | Only backups from this plan. |
--resource <id> | Only backups for this resource. |
--status <status> | Only backups in this status. |
--limit <limit> | Maximum backups returned. |
--project <project> | Filter by project (operator) |
--view <view> | Tenant: render as a tenant sees it, without repository-wide figures. One of tenant. |
metrics show
Show what a backup cost: bytes read, bytes stored and time spent.
An operator token also gets the repository-wide figures, each labelled with the scope it was computed in. A project token gets the project's figures only.
openstack backup metrics show <backup> [--view <view>]
| Argument | Description |
|---|---|
<backup> | Backup id. |
--view <view> | Tenant: render as a tenant sees it, without repository-wide figures. One of tenant. |
record show
Show a backup's recorded resource metadata.
A restore rebuilds from this record: flavor, networks and volume
layout. It is read from the repository named by --repository, which
works for a backup unknown to this cloud.
openstack backup record show <backup> --repository <repository> \
[--domain <domain>]
| Argument | Description |
|---|---|
<backup> | Backup id. |
--repository <repository> | Repository holding the backup, by name or id. Required. |
--domain <domain> | Dedup domain, when it is not the default. |
show
Show a backup.
openstack backup show <backup> [--view <view>]
| Argument | Description |
|---|---|
<backup> | Backup id. |
--view <view> | Tenant: render as a tenant sees it, without repository-wide figures. One of tenant. |
undelete
Lift a backup's soft delete inside its grace (operator).
openstack backup undelete <backup>
| Argument | Description |
|---|---|
<backup> | Backup id. |
verify
Re-read a backup now and record what was found.
Every chunk the backup references is fetched again and re-hashed, which
also clears a broken mark the background pass does not revisit. Nothing
changes until the job has read the data. Returns once the job is queued,
and openstack backup job show follows it.
openstack backup verify <backup>
| Argument | Description |
|---|---|
<backup> | Backup id. |