Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Restoration of Volume Snapshots
Anchor
RestoreVolumeSnapshots
RestoreVolumeSnapshots

...

The restoration of a volume snapshot can also be done in-place, or by creating a new volume. Irrespective of the method, one can restore a volume snapshot with the command

Code Block
openstack volume backup restore [--force] <snapshot> <volume>

where:

  • --force : optional argument to force a restoration of an existing volume without detaching it first.
  • <snapshot> : name or id of the snapshot to restore
  • <volume> : name or id of the existing volume to replace, or the name of a new volume to create

In the case of an in-place restoration, it is recommended to detach the volume first and reattach it after the restoration, but that restriction can be bypassed with the optional flag --force .

Restoration of Volume Backups
Anchor
RestoreVolumeBackups
RestoreVolumeBackups

The restoration of a volume backup can also be done in-place, or by creating a new volume. Irrespective of the method, one can restore a volume backup with the command

Code Block
openstack volume backup restore [--force] <backup> <volume>

where:

  • --force : optional argument to force a restoration of an existing volume without detaching it first.
  • <snapshot> : name or id of the backup to restore
  • <volume> : name or id of the existing volume to replace, or the name of a new volume to create

In the case of an in-place restoration, it is recommended to detach the volume first and reattach it after the restoration, but that restriction can be bypassed with the optional flag --force . Detaching and reattaching the volume to an instance can be done in the same way as for Volume Snapshots

...

To restore a backup to a new volume, first you need to detach the volume from the VM:

ssh into your VM

become root

unmount the volume  

sudo umount --verbose <path-to-volume>

  1. Then you can restore the backup to the volume with OpenStack (from the machine where you are running Openstack commands):

openstack volume backup restore BACKUP_ID VOLUME_ID

Where:

BACKUP_ID: The ID of the backup to restore

VOLUME_ID: The ID of the volume to restore to (must be at least as large as the original volume)

3. Now, you need to attach the volume again to the VM as explained in `Configuring the extra volume in the instance`.

Common use cases

WIP

Backup automation

...