Restores and attachments
Restoring backups, and attaching them read-only.
attachment create
Attach one disk of a backup read-only to a running instance.
The attachment detaches and cleans itself up when its --ttl runs out.
openstack backup attachment create --backup <backup> --instance <instance> \
[--disk <resource-id>] [--device <device>] [--ttl <duration>] [--wait]
| Argument | Description |
|---|---|
--backup <backup> | Backup to attach. Required. |
--instance <instance> | Running instance to attach it to. Required. |
--disk <resource-id> | Disk to attach by resource id, default the root disk. |
--device <device> | Guest device name, e.g. /dev/vdb. |
--ttl <duration> | Detach and clean up after this long, e.g. 30m or 24h (default: 4h) |
--wait | Wait for the attachment to be ready. |
attachment delete
Detach one or more attached backups.
openstack backup attachment delete <attachment> [<attachment> ...]
| Argument | Description |
|---|---|
<attachment> | Attachment id. Takes one or more. |
attachment list
List attached backups.
openstack backup attachment list [--backup <backup>] [--limit <limit>] \
[--project <project>]
| Argument | Description |
|---|---|
--backup <backup> | Only attachments of this backup. |
--limit <limit> | Maximum attachments returned. |
--project <project> | Filter by project (operator) |
restore create
Start a restore of a backup.
volume and instance create a new resource, reshaped by --disk
for either and by --flavor, --network, --key-name and
--security-group for instance alone. bucket restores an
object namespace into a new bucket. in_place overwrites the existing
resource and destroys whatever is there, and is not the default.
openstack backup restore create --backup <backup> [--mode <mode>] \
[--name <name>] [--volume-type <type>] [--availability-zone <az>] \
[--tier <tier>] [--flavor <flavor>] [--network <network>] \
[--key-name <key-pair>] [--security-group <group>] \
[--disk <resource-id>] [--target-project <project>] \
[--mapping-profile <profile>] [--confirm-unresolved <element>] \
[--property <key=value>] [--acknowledge-partial] [--wait]
| Argument | Description |
|---|---|
--backup <backup> | Backup to restore. Required. |
--mode <mode> | Volume, instance, bucket or in_place (default: volume) One of volume, instance, in_place, bucket. |
--name <name> | Name of the new resource, or of a new bucket that must not exist. |
--volume-type <type> | Volume type for restored volumes. |
--availability-zone <az> | Target availability zone. |
--tier <tier> | Source tier, chunk or rbd, default the fastest available. One of chunk, rbd. |
--flavor <flavor> | Restore as new on a different flavor (mode instance) |
--network <network> | Network for every port, or one per port in order (repeatable) |
--key-name <key-pair> | Restore as new with a different key pair (mode instance) |
--security-group <group> | Security group by name or id, mode instance (repeatable) |
--disk <resource-id> | Restore only this disk, mode volume or instance (repeatable) |
--target-project <project> | Restore into another project (operator) |
--mapping-profile <profile> | Mapping profile, by name, for a backup another cloud wrote. |
--confirm-unresolved <element> | Accept an unmapped element, as element[:source] (repeatable) |
--property <key=value> | Metadata on the created resource (repeatable) |
--acknowledge-partial | Restore even though the backup is partial. |
--wait | Wait for the restore to finish. |
restore estimate
Estimate how long a restore would take, without starting one.
openstack backup restore estimate --backup <backup>
| Argument | Description |
|---|---|
--backup <backup> | Backup to estimate. Required. |
restore list
List restores.
openstack backup restore list [--backup <backup>] [--status <status>] \
[--limit <limit>] [--project <project>]
| Argument | Description |
|---|---|
--backup <backup> | Only restores of this backup. |
--status <status> | Only restores in this status, e.g. running or error. |
--limit <limit> | Maximum restores returned. |
--project <project> | Filter by project (operator) |
restore show
Show a restore, including anything it created.
openstack backup restore show <restore>
| Argument | Description |
|---|---|
<restore> | Restore id. |