Downloading and transferring an instance backup from one OpenStack region to another
Objective
A situation may arise where you need to move your Public Cloud instance from one OpenStack region to another, either because you would prefer to move to a newly available OpenStack region or because you want to migrate from OVHcloud Labs to Public Cloud.
This guide explains how to transfer an instance backup from one OpenStack region to another while preserving the configuration and state of the instance.
Requirements
In order to do the transfer, you will need an environment with:
- OpenStack CLI. Use our guide to know how to prepare the environment to use the OpenStack API.
- Connectivity to OVHCloud OpenStack APIs.
- Available storage that matches the instance disk size (for temporary backup storage).
This environment will be used as a "jump host" to transfer the backup from one region to another. This environment can be an instance hosted on OVHCloud or your local machine.
You will also need a Public Cloud instance in your OVHcloud account.
Instructions
If you need to create a backup with OpenStack, please refer to this dedicated guide on how to backup an instance..
Download the backup
Next, run this command to list available instances:
Now identify the instance backup from the list:
Finally, run this command to download the backup on the jump host:
Transfer the backup to another OpenStack region
To start the transfer process, you first need to load new environment variables.
If you are transferring your backup to an OpenStack region within the same project, you will need to change the variable OS_REGION_NAME.
If you are transferring your backup to another project or account, you will have to reload the environment variables linked to that account using the following command:
To transfer the backup to the new OpenStack region, use this command:
If your instance uses a Windows image, you need to add specific properties. Otherwise, when creating the instance via the OVHcloud Control Panel, it will not be possible to associate a flavor of the win-x-x type. This type of flavor, and only this one, enables authentication to the OVHcloud KMS.
Add specific properties for image creation:
Add specific properties after image creation:
If you wish to recreate your instance from this backup, follow our guide "Using instance backups to create or restore an instance".
Go further
Join our community of users.
-
Secure Shell (SSH) : un protocole de réseau sécurisé utilisé pour établir des connexions entre un client et un serveur. Il permet d'exécuter des commandes à distance de manière sécurisée. ↩