Versions Compared

Key

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

Table of Contents



Pre-requisite: EWC - OpenStack Command-Line client

General

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.



Volume Backups


List available backups

 

To list all available backups in your cloud, you can use the following command:

...

$ openstack volume backup list --volume VOLUME_ID

```


Creating Backups

To create a backup of a volume:

...

  • `--incremental`: Create an incremental backup (requires a previous full backup)
  • `--force`: Create a backup even if the volume is attached
  • `--name` NAME: Specify a name for the backup
  • `VOLUME`: The ID or name of the volume to back up

 


Restoring Backups

 

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

...

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

 

VM Images

 

List available images

 

To list all available images:

...

$ openstack image list

```


Creating VM Images


To create a new VM from an image:

...

  • `--name IMAGE_NAME`: The name for the new image
  • `SERVER`: The ID or name of the server to create an image from


Restoring VMs from Images


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:

...