Skip to main content

Repositories

Where backup data is stored. Operator only.

repository create​

Create a repository.

chunk is deduplicated, encrypted object storage that holds backups, and rbd is a tier of Ceph images that makes recent restores fast and takes none of the object-storage options. Under --lock-mode compliance nothing deletes an object before its retain-until date, and under governance an operator with bypass can.

openstack backup repository create <name> --kind <kind> --site <site> \
[--driver <driver>] [--endpoint <url>] [--bucket <bucket>] \
[--region <region>] [--object-prefix <prefix>] [--chunk-size <bytes>] \
[--access-key <key>] [--secret-key <key>] [--ambient-credentials] \
[--ceph-conf <path>] [--ceph-user <user>] [--pool <pool>] \
[--namespace <namespace>] [--reachable-from-site <site>] \
[--replica-of <repository>] [--lock-mode <mode>] \
[--lock-min-retention <duration>] [--lock-max-retention <duration>] \
[--lock-changeable-until <RFC3339>] [--soft-delete-grace <duration>]
ArgumentDescription
<name>Repository name.
--kind <kind>Chunk or rbd. Required. One of chunk, rbd.
--site <site>The locality domain movers share with it. Required.
--driver <driver>S3, rados or posix.
--endpoint <url>S3 endpoint URL.
--bucket <bucket>S3 bucket.
--region <region>S3 region.
--object-prefix <prefix>Key prefix in the bucket, or the filesystem root for posix.
--chunk-size <bytes>Chunk size in bytes, fixed at creation.
--access-key <key>S3 access key.
--secret-key <key>S3 secret key, sealed by the key manager and not returned.
--ambient-credentialsUse the movers' ambient credentials, skip listing the repository.
--ceph-conf <path>Ceph.conf path for an rbd tier.
--ceph-user <user>Cephx user for an rbd tier.
--pool <pool>Ceph pool for an rbd tier.
--namespace <namespace>RADOS namespace within the pool.
--reachable-from-site <site>Site that can read this repository, by name or id (repeatable)
--replica-of <repository>The repository this one is a near-replica of, by name or id.
--lock-mode <mode>Compliance or governance, setting one makes the repository locked. One of compliance, governance.
--lock-min-retention <duration>Lock floor every object written here is held for, e.g. 720h.
--lock-max-retention <duration>Lock ceiling, 0 or unset for none.
--lock-changeable-until <RFC3339>End of the correction window, three days after creation if unset.
--soft-delete-grace <duration>How long an operator can undelete a backup or plan, 0 for none.

repository delete​

Delete one or more repositories.

A repository still holding an object under lock is refused.

openstack backup repository delete <repository> [<repository> ...]
ArgumentDescription
<repository>Repository name or id. Takes one or more.

repository group list​

List the protection groups a repository describes (operator).

Each is the newest version of a group document another region wrote, as this region's catalogue read it. registered_as names this region's recovery of it, once one is registered with openstack backup group register.

openstack backup repository group list <repository> [--origin-cloud <cloud>]
ArgumentDescription
<repository>Repository to read, by name or id.
--origin-cloud <cloud>Only groups this cloud wrote.

repository list​

List repositories.

openstack backup repository list [--kind <kind>] [--limit <limit>]
ArgumentDescription
--kind <kind>Chunk or rbd. One of chunk, rbd.
--limit <limit>Maximum repositories returned.

repository set​

Update a repository, including its retention contract.

The driver, bucket and chunk size are fixed at creation. --reachable-from-site replaces the whole list. Inside the contract's grace anything about the contract may change, and after it the floor only increases, the mode is fixed and the block cannot be removed.

openstack backup repository set <repository> [--endpoint <url>] \
[--region <region>] [--access-key <key>] [--secret-key <key>] \
[--ambient-credentials] [--reachable-from-site <site>] \
[--replica-of <repository>] [--lock-mode <mode>] \
[--lock-min-retention <duration>] [--lock-max-retention <duration>] \
[--lock-changeable-until <RFC3339>] [--soft-delete-grace <duration>]
ArgumentDescription
<repository>Repository name or id.
--endpoint <url>New S3 endpoint URL.
--region <region>New S3 region.
--access-key <key>New S3 access key.
--secret-key <key>New S3 secret key.
--ambient-credentialsSkip listing a remote repository before saving the change.
--reachable-from-site <site>Site that can read this repository, by name or id (repeatable)
--replica-of <repository>The repository this one is a near-replica of, by name or id.
--lock-mode <mode>Compliance or governance, setting one makes the repository locked. One of compliance, governance.
--lock-min-retention <duration>Lock floor every object written here is held for, e.g. 720h.
--lock-max-retention <duration>Lock ceiling, 0 or unset for none.
--lock-changeable-until <RFC3339>End of the correction window, three days after creation if unset.
--soft-delete-grace <duration>How long an operator can undelete a backup or plan, 0 for none.

repository show​

Show a repository and any warnings.

openstack backup repository show <repository>
ArgumentDescription
<repository>Repository name or id.

repository unset​

Clear fields of a repository.

The retention contract can be removed only inside its grace.

openstack backup repository unset <repository> [--reachable-from-site] \
[--replica-of] [--object-lock]
ArgumentDescription
<repository>Repository name or id.
--reachable-from-siteEmpty the list of sites that can read it.
--replica-ofIt is no longer a replica of another.
--object-lockRemove the retention contract.

repository usage show​

Show what a repository is actually storing (operator).

Repository-wide figures: physical bytes, the cross-tenant dedup margin, sweep state and a row per tenant. It needs a system-scoped token. openstack backup usage show shows one project's usage.

openstack backup repository usage show <repository>
ArgumentDescription
<repository>Repository name or id.