Restoring volumes from backups

During the restore process, a new volume is created and the existing volume is not overwritten. You can restore a volume from a backup of a data or boot volume.

Prerequisites

To restore a volume

Admin panel

  1. On the Compute > Backup > Recovery points tab, click the recovery point from which you want to restore a volume.
  2. On the right pane, click Restore volume.
  3. In the Restore volume window, specify a volume name and select a storage policy, and then click Restore.

The new volume will appear on the Compute > Storage > Volumes screen.

Command-line interface

Use the following command:

vinfra service compute volume backup restore [--name <name>] [--storage-policy <storage-policy>]
                                             <volume-backup>
<volume-backup>
Volume backup ID or name
--name <name>
Name of a new volume
--storage-policy <storage-policy>
The name or ID of storage policy for a new volume

For example, to restore a new volume with the name myvolume and the default storage policy from the backup mybackup, run:

# vinfra service compute volume backup restore mybackup --name myvolume --storage-policy default