Versions Compared

Key

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

Pre-requisite: EWC - OpenStack Command-Line client


Table of Contents

...

Foreword

When Before backing up resources in OpenStack, it's important to understand the difference between two three primary methods:

  1. VM Images Intance Snapshots (Glance): These capture the entire virtual machine, including the operating system, applications, and configuration. VM images Instance snapshots are useful for cloning VMs, creating templates, or disaster recovery scenarios. They're managed through the Glance service.
  2. Volume Snapshots (Cinder): These are delta copies of the block storage volumes. Volume snapshots are not full copies and rely on the original volume for restoration, so they are mostly useful for accident recovery. They're managed through the Cinder service.
  3. Volume Backups (Cinder): These are point-in-time copies of block storage volumes. Volume backups preserve the data within a volume and can be used to restore the volume to the exact state it was in when backed up. They're ideal for data recovery and are managed through the Cinder service.

Choose the appropriate method based on your recovery needs: volume backups for data recovery, VM images for full system recovery or replicationinstance snapshots for full system recovery or replication, volume snapshots for accident prevention and recovery or volume backups for full data recovery.


Info

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

...

Backup

...

VMs and volumes

Instance Snapshots

To take a snapshot of a instance for later recovery or replication, one must create an image based on the current VM.  The list of VMs/servers than can be used for the snapshot can be found with

List available image

To list all available images:

Code Block
openstack imageserver list

Creating VM Images Snapshots

The following command creates the image SERVER by taking a And, to create the image snapshot of a running server.VM with name or id <server> use the command

Code Block
openstack server image create --name IMAGE<image_NAMEname> SERVER<server>

Wherewhere:

  • --name IMAGE<image_NAMEname>: The name for the new image snapshot
  • SERVER<server>: The name of your server (as given by openstack server list)./ VM.

Lastly, to see the list of images, including the recent snapshot

Code Block
openstack image list
and the specific details of the created image
```
openstack image show <image_name>
```

Volume Backups

List available backups

...