Skip to content

Setting up Backups of VMs and restore them

Warning

Backup as a Service is currently only available upon request.

This guide will walk you through the process of creating a secret key, creating (un)encrypted backup schedules, and restoring VMs from backups using the UI.

Prerequisites

  • Access to SysEleven OpenStack Cloud
  • Sufficient permissions to create VMs, Secrets and backups
  • Unlocked UI access towards Barbican for OpenStack and Backup as a Service
  • A resource you want to backup (e.g. a VM)

Steps

1. (Optional) Obtain a secret via Barbican

First, we will create a secret order to let Barbican supply us with a random key. There are different ways to create a secret, we are following this way via a secret order to receive a secret which is compliant with the backup service requirements.

SysEleven Dashboard

In the prompt we suggest to configure a name for your secret order for the start.

SysEleven Dashboard

You should see your secret order has been created successfully.

SysEleven Dashboard

After creation of the secret order we will also see a secret has been created for us

SysEleven Dashboard

This is the secret we will be using to encrypt our backup.

2. Create a scheduled job for backups

The next step is to create a scheduled job for our backup to ensure you have automatic backups created periodically from your resource. In this example we have 2 VMs, we want to encrypt the backup for 1 VM and leave the second backup unencrypted. You cannot encrypt single resources of a backup, you have to decide to either fully encrypt it or leave it unencrypted.

We start with the unencrypted backup.

SysEleven Dashboard

For the encrypted backup we will choose our obtained secret from the first step.

SysEleven Dashboard

After creating the scheduled job you will see the following (here the example for the unencrypted backup). You will see the resources which are part of the backup as members inside of this job.

SysEleven Dashboard

3. Manually trigger creation of a backup

The scheduled job created in the second step is automatically creating backups according to the schedule. It is also always possible to manually create backups via accessing the schedule directly. As there currently is no backup in our example we will create a full backup of the VM(s).

SysEleven Dashboard

The process of the backup creation is being shown in the UI, once it is reported as available

SysEleven Dashboard

4. Delete VMs and restore them from backup

There are 2 ways to restore a backup. The first would be a "one click" restore, the second is an "inplace" restore. The "one click" restore option is viable if you lost all the related VM resources of your backup. If parts of your VM resources are still running you have to choose the "inplace" option. In this example we will work with the "one click" restore. So to be able to restore our backups we should first delete our currently running VMs.

SysEleven Dashboard

As the next step we will create a new "one click" restore and choose one of our scheduled jobs. The prompt will guide you through the next steps.

SysEleven Dashboard

After creation of the restore you will see the UI showing the progress of the operation.

SysEleven Dashboard

If you check for your VMs you will see the before deleted VMs are now being spawned from the backup again.

SysEleven Dashboard

Once you can see the restore is being reported as available your backup restore is finished.

SysEleven Dashboard

Checking our VMs we can see they have been brought back back from the restore.

SysEleven Dashboard

Conclusion

You have successfully created a secret, a schedule to automatically create (un)encrypted backups for your VM, and tested to restore your newly created backup.