Pre-requisite: EWC - OpenStack Command-Line client |
When backing up resources in OpenStack, it's important to understand the difference between two primary methods:
Choose the appropriate method based on your recovery needs: volume backups for data recovery, VM images for full system recovery or replication.
| Before starting make sure you are in the machine where you configured openstack client and you can run openstack commands as described in EWC - OpenStack Command-Line client |
OpenStack provide a mechanism to replace the underlying disk of an existing VM with an image without creating a new VM instance running the following command:
|
where
VM-NAME: The name of the existing VM
IMAGE_ID: Name of the backup image of the VM you created before
|
|
Where:
BACKUP_ID: The ID of the backup to restoreVOLUME_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`.