Skip to content

feat(distant backup): update backup guide #7978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 108 additions & 18 deletions pages/public_cloud/compute/save_an_instance/guide.en-gb.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
---
title: Backing up an instance
excerpt: Find out how to back up a Public Cloud instance in the OVHcloud Control Panel
excerpt: Find out how to back up a Public Cloud instance in the OVHcloud Control Panel or via Openstack
updated: 2025-04-28
---

<style>
details>summary {
color:rgb(33, 153, 232) !important;
cursor: pointer;
}
details>summary::before {
content:'\25B6';
padding-right:1ch;
}
details[open]>summary::before {
content:'\25BC';
}
</style>

## Objective

You can create a single backup of an instance or configure a schedule in order to automate your instance backups. Backups can be used to restore your instance to a previous state or to create a new, identical instance.
Expand All @@ -14,6 +28,7 @@ You can create a single backup of an instance or configure a schedule in order t

- A [Public Cloud instance](https://www.ovhcloud.com/en-gb/public-cloud/) in your OVHcloud account
- Access to the [OVHcloud Control Panel](/links/manager)
- OpenStack CLI. Use [our guide to know how to prepare the environment to use the OpenStack API](/pages/public_cloud/public_cloud_cross_functional/prepare_the_environment_for_using_the_openstack_api).

## Instructions

Expand All @@ -23,26 +38,101 @@ You can create a single backup of an instance or configure a schedule in order t
> This option is only available through a **Cold Snapshot** for Metal instances. During this process, the Metal instance will be switched to rescue-mode, and once the backup is performed, the instance will reboot back to normal mode.
>

Log in to the [OVHcloud Control Panel](/links/manager), go to the `Public Cloud`{.action} section and select the Public Cloud project concerned. Then click on `Instances`{.action} in the left-hand menu.

Click on the `...`{.action} button to the right of the instance and select `Create a backup`{.action}.

![public-cloud-instance-backup](images/createbackup1.png){.thumbnail}

Enter a name for the backup on the next page. Take note of the pricing information and click on `Confirm`{.action}.

![public-cloud-instance-backup](images/createbackup2.png){.thumbnail}

It is not possible to track the progress of the backup in real time, however, in the `Instance Backup`{.action} section under **Compute** in the left-hand menu, the status will be displayed as "Backup in progress" during the process.

![public-cloud-instance-backup](images/backup_in_progress.png){.thumbnail}

Once the backup is complete, it will be available in the `Instance Backup`{.action} section under **Compute** in the left-hand menu.

![public-cloud-instance-backup](images/createbackup3.png){.thumbnail}
>[!tabs]
> Via the OVHcloud Control Panel
>> Log in to [OVHcloud customer area](/links/manager), access the `Public Cloud`{.action} section and select the relevant Public Cloud project. Then click on `Instances`{.action} in the left-hand menu.
>>
>> Click on the `...`{.action} button to the right of the instance and select `Create backup`{.action}.
>>
>> ![public-cloud-instance-backup](images/createbackup1.png){.thumbnail}
>>
>> > [primary]
>> >
>> > Two types of backup are available: local and distant.
>> >
>> > A local backup is stored in the same region as your instance.
>> >
>> > A distant backup automatically creates a copy of the local backup in a different region of your choice.
>> >
>> > Each backup is billed separately — the distant backup will be charged based on the storage pricing of the selected remote region.
>> >
>>
>> /// details | Local backup
>>
>> Enter a name for the backup. Review the pricing information and click `Confirm`{.action}.
>>
>> ![public-cloud-instance-backup](images/createbackup2.png){.thumbnail}
>>
>> ///
>>
>> /// details | Distant backup
>>
>> Enter a name for the local backup in the `Enter the name of your backup :` field.
>>
>> ![public-cloud-instance-distant-backup](images/createdistantbackup1.png){.thumbnail}
>>
>> Next, `activate`{.action} the option to add a remote backup, then specify the name of this backup, select its destination region and click `Confirm`{.action}.
>>
>> ![public-cloud-instance-distant-backup2](images/createdistantbackup2.png){.thumbnail}
>>
>> ///
>>
>> It is not possible to monitor backup progress in real time. However, in the `Instance Backup`{.action} section under **Compute** in the left-hand menu, the status `Backup in progress` will be displayed during the process.
>>
>> ![public-cloud-instance-backup](images/backup_in_progress.png){.thumbnail}
>>
>> Once the backup is complete, it will be available in the `Instance Backup`{.action} section under **Compute** in the left-hand menu.
>>
>> ![public-cloud-instance-backup](images/createbackup3.png){.thumbnail}
>>
> Via Openstack
>> ```bash
>> $ openstack server list
>>
>> +--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
>> | ID | Name | Status | Networks | Image Name |
>> +--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
>> | aa7115b3-83df-4375-b2ee-19339041dcfa | Server 1 | ACTIVE | Ext-Net=51.xxx.xxx.xxx, 2001:41d0:xxx:xxxx::xxxx | Ubuntu 16.04 |
>> +--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
>> ```
>>
>> /// details | Local backup
>>
>> Then run the following command to create a backup of your instance:
>>
>> ```bash
>> $ openstack server image create --name snap_server1 aa7115b3-83df-4375-b2ee-19339041dcfa
>> ```
>>
>> ///
>>
>> /// details | Remote backup
>>
>> Run the following command after following the local backup step:
>>
>> ```bash
>> $ openstack workflow execution create ovh. glance.glance_download '{"src_image_id":"<image_id>", "src_region":"<current_region>", "dst_region":"<remote_region>"}'
>> ```
>>
>> //
>>
> Via Horizon
>> Click on the `Compute`{.action} menu on the left, then select `Instances`{.action}. Click on the `Create Snapshot`{.action} button to the right of the instance line.
>>
>> ![public-cloud-instance-backup-horizon1](images/createbackuphorizon1.png){.thumbnail}
>>
>> Fill in the backup name and press the `Create Snapshot`{.action} button.
>>
>> ![public-cloud-instance-backup-horizon2](images/createbackuphorizon2.png){.thumbnail}
>>

### Creating an automated backup of an instance

> [!primary]
>
> If you want to automate this functionality directly via OpenStack, you can create a Mistral workflow associated with a cron trigger.
>

Click on the `...`{.action} button to the right of the instance and select `Create an automatic backup`{.action}.

![public-cloud-instance-backup](images/createbackup4.png){.thumbnail}
Expand Down
132 changes: 113 additions & 19 deletions pages/public_cloud/compute/save_an_instance/guide.fr-fr.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
---
title: 'Sauvegarder une instance'
excerpt: 'Découvrez comment sauvegarder une instance Public Cloud depuis votre espace client OVHcloud'
updated: 2025-04-28
excerpt: 'Découvrez comment sauvegarder une instance Public Cloud depuis votre espace client OVHcloud ou Openstack'
updated: 2025-06-10
---

<style>
details>summary {
color:rgb(33, 153, 232) !important;
cursor: pointer;
}
details>summary::before {
content:'\25B6';
padding-right:1ch;
}
details[open]>summary::before {
content:'\25BC';
}
</style>

## Objectif

Vous pouvez créer une sauvegarde unique d'une instance ou configurer un planning afin d'automatiser les sauvegardes de vos instances. Les sauvegardes peuvent être utilisées pour restaurer votre instance à un état antérieur ou pour créer une nouvelle instance identique.
Expand All @@ -14,6 +28,7 @@ Vous pouvez créer une sauvegarde unique d'une instance ou configurer un plannin

- Avoir une instance [Public Cloud](https://www.ovhcloud.com/fr/public-cloud/) dans votre compte OVHcloud.
- Être connecté à votre [espace client OVHcloud](/links/manager).
- CLI OpenStack. Consultez notre guide « [Comment préparer l'environnement pour utiliser l'API OpenStack](/pages/public_cloud/public_cloud_cross_functional/prepare_the_environment_for_using_the_openstack_api) ».

## En pratique

Expand All @@ -23,26 +38,101 @@ Vous pouvez créer une sauvegarde unique d'une instance ou configurer un plannin
> Cette option est uniquement disponible via un **Cold Snapshot** pour les instances Metal. L'instance Metal passera en mode rescue et, une fois la sauvegarde effectuée, l'instance sera redémarrée en mode normal.
>

Connectez-vous à [l’espace client d’OVHcloud](/links/manager), accédez à la section `Public Cloud`{.action} et sélectionnez le projet Public Cloud concerné. Cliquez ensuite sur `Instances`{.action} dans le menu de gauche.

Cliquez sur le bouton `...`{.action} à droite de l'instance et sélectionnez `Créer un backup`{.action}.

![public-cloud-instance-backup](images/createbackup1.png){.thumbnail}

Renseignez un nom pour la sauvegarde sur la page suivante. Prenez connaissance des informations tarifaires et cliquez sur `Confirmer`{.action}.

![public-cloud-instance-backup](images/createbackup2.png){.thumbnail}

Il n'est pas possible de suivre la progression de la sauvegarde en temps réel. Cependant, dans la section `Instance Backup`{.action} sous la rubrique **Compute** dans le menu de gauche, le statut `Backup en cours` sera affiché pendant le processus.

![public-cloud-instance-backup](images/backup_in_progress.png){.thumbnail}

Une fois la sauvegarde terminée, celle-ci sera disponible dans la section `Instance Backup`{.action} sous la rubrique **Compute** dans le menu de gauche.

![public-cloud-instance-backup](images/createbackup3.png){.thumbnail}
>[!tabs]
> Via l'espace client OVHcloud
>> Connectez-vous à [l’espace client d’OVHcloud](/links/manager), accédez à la section `Public Cloud`{.action} et sélectionnez le projet Public Cloud concerné. Cliquez ensuite sur `Instances`{.action} dans le menu de gauche.
>>
>> Cliquez sur le bouton `...`{.action} à droite de l'instance et sélectionnez `Créer un backup`{.action}.
>>
>> ![public-cloud-instance-backup](images/createbackup1.png){.thumbnail}
>>
>> > [primary]
>> >
>> > Deux types de sauvegardes sont disponibles : locale et distante.
>> >
>> > Une sauvegarde locale est stockée dans la même région que votre instance.
>> >
>> > Une sauvegarde distante crée automatiquement une copie de la sauvegarde locale dans une autre région de votre choix.
>> >
>> > Chaque sauvegarde est facturée séparément. La sauvegarde distante sera facturée selon la tarification du stockage dans la région distante sélectionnée.
>> >
>>
>> /// details | Sauvegarde locale
>>
>> Renseignez un nom pour la sauvegarde. Prenez connaissance des informations tarifaires et cliquez sur `Confirmer`{.action}.
>>
>> ![public-cloud-instance-backup](images/createbackup2.png){.thumbnail}
>>
>> ///
>>
>> /// details | Sauvegarde distante
>>
>> Renseignez un nom pour la sauvegarde locale dans le champ `Saisissez le nom de votre backup :`.
>>
>> ![public-cloud-instance-distant-backup](images/createdistantbackup1.png){.thumbnail}
>>
>> Ensuite, `activez`{.action} l’option permettant d’ajouter une sauvegarde distante, puis indiquez le nom de cette sauvegarde, sélectionnez sa région de destination et cliquez sur `Confirmer`{.action}.
>>
>> ![public-cloud-instance-distant-backup2](images/createdistantbackup2.png){.thumbnail}
>>
>> ///
>>
>> Il n'est pas possible de suivre la progression de la sauvegarde en temps réel. Cependant, dans la section `Instance Backup`{.action} sous la rubrique **Compute** dans le menu de gauche, le statut `Backup en cours` sera affiché pendant le processus.
>>
>> ![public-cloud-instance-backup](images/backup_in_progress.png){.thumbnail}
>>
>> Une fois la sauvegarde terminée, celle-ci sera disponible dans la section `Instance Backup`{.action} sous la rubrique **Compute** dans le menu de gauche.
>>
>> ![public-cloud-instance-backup](images/createbackup3.png){.thumbnail}
>>
> Via Openstack
>> ```bash
>> $ openstack server list
>>
>> +--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
>> | ID | Name | Status | Networks | Image Name |
>> +--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
>> | aa7115b3-83df-4375-b2ee-19339041dcfa | Server 1 | ACTIVE | Ext-Net=51.xxx.xxx.xxx, 2001:41d0:xxx:xxxx::xxxx | Ubuntu 16.04 |
>> +--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
>> ```
>>
>> /// details | Sauvegarde locale
>>
>> Exécutez ensuite la commande suivante pour créer une sauvegarde de votre instance :
>>
>> ```bash
>> $ openstack server image create --name snap_server1 aa7115b3-83df-4375-b2ee-19339041dcfa
>> ```
>>
>> ///
>>
>> /// details | Sauvegarde distante
>>
>> Exécutez la commande suivante après avoir suivi l'étape de la sauvegarde locale :
>>
>> ```bash
>> $ openstack workflow execution create ovh.glance.glance_download '{"src_image_id": "<image_id>", "src_region": "<current_region>", "dst_region": "<remote_region>"}'
>> ```
>>
>> ///
>>
> Via Horizon
>> Cliquez sur le menu `Compute`{.action} à gauche puis sélectionnez `Instances`{.action}. Cliquez sur le bouton `Create Snapshot`{.action} situé à droite de la ligne correspondant à l’instance concernée.
>>
>> ![public-cloud-instance-backup-horizon1](images/createbackuphorizon1.png){.thumbnail}
>>
>> Remplissez le nom du backup et appuyez sur le bouton `Create Snapshot`{.action}.
>>
>> ![public-cloud-instance-backup-horizon2](images/createbackuphorizon2.png){.thumbnail}
>>

### Créer une sauvegarde automatisée d’une instance

> [!primary]
>
> Si vous souhaitez automatiser cette fonctionnalité directement via OpenStack, vous pouvez créer un workflow Mistral associé à un cron trigger.
>

Cliquez sur le bouton `...`{.action} à droite de l'instance et sélectionnez `Créer une sauvegarde automatisée`{.action}.

![public-cloud-instance-backup](images/createbackup4.png){.thumbnail}
Expand Down Expand Up @@ -70,6 +160,10 @@ Vous pouvez définir une planification de sauvegarde personnalisée ou choisir l

![public-cloud-instance-backup](images/createbackup7.png){.thumbnail}

Dans le cas ou vous activez l'option de sauvegarde distante, vous pourrez renseigner le nom ainsi que sélectionner la localisation de celle-ci.

![public-cloud-instance-distant-backup-workflow](images/createdistantbackup3.png){.thumbnail}

#### **Le nom**

Entrez un nom pour la planification de la sauvegarde automatique. Prenez connaissance des informations de tarification et créez le planning en cliquant sur le bouton `Créer`{.action}.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,10 @@ You will also need a [Public Cloud instance](/links/public-cloud/compute) in you

## Instructions

### Create a backup


```bash
$ openstack server list

+--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
| ID | Name | Status | Networks | Image Name |
+--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
| aa7115b3-83df-4375-b2ee-19339041dcfa | Server 1 | ACTIVE | Ext-Net=51.xxx.xxx.xxx, 2001:41d0:xxx:xxxx::xxxx | Ubuntu 16.04 |
+--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
```

Next, run the following command to create a backup of your instance:

```bash
$ openstack server image create --name snap_server1 aa7115b3-83df-4375-b2ee-19339041dcfa
```
> [primary]
>
> If you need to create a backup with Openstack, please refer to this dedicated guide on how to [backup an instance.](/pages/public_cloud/compute/save_an_instance)
>

### Download the backup

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Vous aurez également besoin d’une [instance Public Cloud](/links/public-cloud

```bash
$ openstack server list

+--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
| ID | Name | Status | Networks | Image Name |
+--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,10 @@ Vous aurez également besoin d’une [instance Public Cloud](/links/public-cloud

## En pratique

### Créer une sauvegarde

```bash
$ openstack server list

+--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
| ID | Name | Status | Networks | Image Name |
+--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
| aa7115b3-83df-4375-b2ee-19339041dcfa | Server 1 | ACTIVE | Ext-Net=51.xxx.xxx.xxx, 2001:41d0:xxx:xxxx::xxxx | Ubuntu 16.04 |
+--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
```

Exécutez ensuite la commande suivante pour créer une sauvegarde de votre instance :

```bash
$ openstack server image create --name snap_server1 aa7115b3-83df-4375-b2ee-19339041dcfa
```
> [primary]
>
> Si vous devez créer une sauvegarde avec Openstack, veuillez vous référer à ce guide dédié pour savoir comment [sauvegarder une instance.](/pages/public_cloud/compute/save_an_instance)
>

### Télécharger la sauvegarde

Expand Down