Downloading and transferring an instance backup from one OpenStack region to another
Find out how to download and transfer an instance backup from one OpenStack region to another while preserving the configuration and state of the instance
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
- 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. It 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, refer to our guide "Backing up an instance".
Step 1 - Download the backup
List your private images to identify the backup you want to transfer:
Download the backup to your local storage:
Step 2 - Switch to the target region
If you are transferring the backup to another region within the same project, update OS_REGION_NAME:
If you are transferring to a different project or account, source the corresponding RC file:
Step 3 - Import the backup into the target region
The import command differs depending on whether the target is a standard region or a Local Zone.
Standard region
Local Zone
Local Zone region names contain -lz- (e.g. eu-central-lz-prg-a). They require --disk-format raw. The filename extension of the backup file does not affect the import — --disk-format is what tells OpenStack how to interpret the file.
Windows images only — you must add the following properties, otherwise it will not be possible to associate a win-x-x flavor type from the OVHcloud Control Panel. This flavor type is required for authentication via the OVHcloud KMS.
Add the properties at creation time (standard region):
Add the properties at creation time (Local Zone):
Or set them on an existing image:
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.