diff --git a/pages/public_cloud/compute/save_an_instance/guide.en-gb.md b/pages/public_cloud/compute/save_an_instance/guide.en-gb.md index 464a8130c70..8c10145dd43 100644 --- a/pages/public_cloud/compute/save_an_instance/guide.en-gb.md +++ b/pages/public_cloud/compute/save_an_instance/guide.en-gb.md @@ -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 --- + + ## 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. @@ -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 @@ -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":"", "src_region":"", "dst_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} diff --git a/pages/public_cloud/compute/save_an_instance/guide.fr-fr.md b/pages/public_cloud/compute/save_an_instance/guide.fr-fr.md index ab27515244b..3498f5b022d 100644 --- a/pages/public_cloud/compute/save_an_instance/guide.fr-fr.md +++ b/pages/public_cloud/compute/save_an_instance/guide.fr-fr.md @@ -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 --- + + ## 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. @@ -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 @@ -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": "", "src_region": "", "dst_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} @@ -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}. diff --git a/pages/public_cloud/compute/save_an_instance/images/createbackuphorizon1.png b/pages/public_cloud/compute/save_an_instance/images/createbackuphorizon1.png new file mode 100644 index 00000000000..786ddf5d31b Binary files /dev/null and b/pages/public_cloud/compute/save_an_instance/images/createbackuphorizon1.png differ diff --git a/pages/public_cloud/compute/save_an_instance/images/createbackuphorizon2.png b/pages/public_cloud/compute/save_an_instance/images/createbackuphorizon2.png new file mode 100644 index 00000000000..5c5da7c7724 Binary files /dev/null and b/pages/public_cloud/compute/save_an_instance/images/createbackuphorizon2.png differ diff --git a/pages/public_cloud/compute/transfer_instance_backup_from_one_datacentre_to_another/guide.en-gb.md b/pages/public_cloud/compute/transfer_instance_backup_from_one_datacentre_to_another/guide.en-gb.md index 6439cbbd3b3..624ca2474f4 100644 --- a/pages/public_cloud/compute/transfer_instance_backup_from_one_datacentre_to_another/guide.en-gb.md +++ b/pages/public_cloud/compute/transfer_instance_backup_from_one_datacentre_to_another/guide.en-gb.md @@ -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 diff --git a/pages/public_cloud/compute/transfer_instance_backup_from_one_datacentre_to_another/guide.fr-ca.md b/pages/public_cloud/compute/transfer_instance_backup_from_one_datacentre_to_another/guide.fr-ca.md index 6ef99f4a2d5..c7d677e997f 100644 --- a/pages/public_cloud/compute/transfer_instance_backup_from_one_datacentre_to_another/guide.fr-ca.md +++ b/pages/public_cloud/compute/transfer_instance_backup_from_one_datacentre_to_another/guide.fr-ca.md @@ -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 | +--------------------------------------+-----------+--------+--------------------------------------------------+--------------+ diff --git a/pages/public_cloud/compute/transfer_instance_backup_from_one_datacentre_to_another/guide.fr-fr.md b/pages/public_cloud/compute/transfer_instance_backup_from_one_datacentre_to_another/guide.fr-fr.md index 6ef99f4a2d5..9d7b2df5302 100644 --- a/pages/public_cloud/compute/transfer_instance_backup_from_one_datacentre_to_another/guide.fr-fr.md +++ b/pages/public_cloud/compute/transfer_instance_backup_from_one_datacentre_to_another/guide.fr-fr.md @@ -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