Restoring a Backup to a New Volume
Learn how to restore a backup of a volume as a new volume.
-
Open the navigation menu and select Storage. Under Block Storage, select Block Volume Backups.
A list of the block volume backups in the compartment you're viewing is displayed. If you don't see the one you're looking for, make sure you're viewing the correct compartment (select from the list on the left side of the page).
- Select the for the block volume backup you want to restore.
- Select Restore Block Volume.
- Enter a name for the block volume and choose the compartment and availability domain in which you want to restore it. Avoid entering confidential information.
- (Optional) In the Cluster Placement Group field, select the cluster placement group in which to restore the volume to. Note
The Cluster Placement Group control only appears in the Console if Cluster Placement Groups are enabled for the tenancy, and you've created and activated a cluster placement group with the capability added for volume resources, see Cluster Placement Groups for Block Volume. -
You can restore a block volume backup to a larger volume size. To do this, select Custom and then specify the new size in the Volume size (in GB) field.Note
You can only increase the size of the volume, you cannot decrease the size. If you restore the block volume backup to a larger size volume, you need to extend the volume's partition, see Extending the Partition for a Block Volume for more information. - (Optional) In the Backup policies section, select the appropriate backup policy for your requirements. See Policy-Based Backups for more information about backup policies.
-
(Optional) Encrypt the data in this volume using your own Vault encryption key.
- (Optional) Select Show Tagging Options to add tags to the volume.
-
- To use Vault for your encryption needs, select the Encrypt using customer-managed keys check box.
- Select the vault compartment and vault that contains the master encryption key that you want to use, and then select the master encryption key compartment and master encryption key.
- If you have permissions to create a resource, then you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.
-
Select Restore Block Volume.
The volume will be ready to attach once its icon no longer lists it as PROVISIONING in the volume list. For more information, see Attaching a Block Volume to an Instance.
Caution
If you want to attach a restored volume that has the original volume attached, be aware that some operating systems do not allow you to restore identical volumes. To resolve this, you should change the partition IDs before restoring the volume. How to change an operating system's partition ID varies by operating system; for instructions, see your operating system's documentation.-
Open the navigation menu and select Storage. Under Block Storage, select Block Volume Backups.
Use the
oci bv volume create
command and specify the--volume-backup-id
parameter to restore a volume backup to the newly created volume:oci bv volume create --volume-backup-id <backup_id>
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the
CreateVolume
operation and specify thevolumeBackupId
attribute in theCreateVolumeDetails
resource to restore that backup in the new volume.