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 |
To list all available images:
openstack image list |
The following command creates the image SERVER by taking a snapshot of a running server.
openstack server image create --name IMAGE_NAME SERVER |
Where:
--name IMAGE_NAME: The name for the new image snapshotSERVER: The name of your server (as given by openstack server list).To list all available backups in your cloud, you can use the following command:
openstack volume backup list |
Additionally, you can filter the results with additional options to list backups for a specific volume:
openstack volume backup list --volume VOLUME_ID |
To create a backup of a volume:
openstack volume backup create [--incremental] [--force] [--name NAME] VOLUME |
Where:
--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 backupVOLUME: The ID or name of the volume to back up