Learn how to transfer an instance backup from one OpenStack region to another while preserving the configuration and state of the instance.
Through this guide, you will create an OpenStack environment that 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.
Requirements
- A Public Cloud instance in your OVHcloud account
- OpenStack CLI (see this guide for more information)
- Connectivity to OVHCloud OpenStack APIs
- Available storage that matches the instance disk size (for temporary backup storage)
Instructions
Create a backup
Next, run the following command to create a backup of your 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.
NOTE: 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:
NOTE: 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:
Create an instance from your backup
NOTE: If your instance is a Windows server, you must select a flavor of type win-xx-xx (for example, win-b2-15) and have a public interface on the Ext-Net network. Without these conditions, authentication with the OVHcloud KMS will not be possible, and your server will remain with an unactivated license. This could lead to limitations, including the absence of updates. Please note that it is not possible to resize a Linux instance (such as b2-15) to a Windows instance (such as win-b2-15). To make this transition, you need to recreate a new instance.
To create an instance from your backup, use the backup ID as the image with this command:
Go further
For more information and tutorials, please see our other Public Cloud support guides or explore the guides for other OVHcloud products and services.