---
title: "Backing up an instance"
description: "Find out how to back up a Public Cloud instance in the OVHcloud Control Panel or via OpenStack"
url: https://docs.ovhcloud.com/en/guides/public-cloud/compute/save-an-instance
lang: en
lastUpdated: 2025-12-09
---
# Backing up an instance

## 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.

**This guide explains how to create manual and automatic backups of a Public Cloud instance.**

## Requirements

- A [Public Cloud instance](https://www.ovhcloud.com/en-gb/public-cloud/) in your OVHcloud account
- OpenStack CLI. Use [our guide to know how to prepare the environment to use the OpenStack API](/en/guides/public-cloud/cross-functional/compute-prepare-openstack-api-environment.md). (optional)


***

### OVHcloud Control Panel Access

- **Direct link:** <ManagerLink to="/#/pci/projects">Public Cloud Projects</ManagerLink>
- **Navigation path:** <code className="action">Public Cloud</code> > Select your project

***


## Instructions

### Creating a backup of an instance

:::warning
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.

:::

:::info
Two types of backup are available:

- Local: A local backup is stored in the same region as your instance.
- Distant: 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.

**Note:** Local Zones are not eligible for distant backups.

:::


**Via the OVHcloud Control Panel**

Click on <code className="action">Instances</code> in the left-hand menu.
Click on the <code className="action">...</code> button to the right of the instance and select <code className="action">Create backup</code>.
![public-cloud-instance-backup](/images/public-cloud/compute/save-an-instance/createbackup1.png)

Local backup

Enter a name for the backup. Review the pricing information and click <code className="action">Confirm</code>.
![public-cloud-instance-backup](/images/public-cloud/compute/save-an-instance/createbackup2bis.png)

Distant backup

Enter a name for the backup. Review the pricing information. Click <code className="action">Add a remote backup (Option)</code>, enter a name for distant backup, select a region and click <code className="action">Confirm</code>
![public-cloud-instance-backup](/images/public-cloud/compute/save-an-instance/createdistantbackup.png)

It is not possible to monitor backup progress in real time. However, in the <code className="action">Instance Backup</code> section under **Compute** in the left-hand menu, the status `Backup in progress` will be displayed during the process.
Once the backup is complete, it will be available in the <code className="action">Instance Backup</code> section under **Compute** in the left-hand menu.
![public-cloud-instance-backup](/images/public-cloud/compute/save-an-instance/createbackup3.png)

**Via the OVHcloud API**

Log in to the [OVHcloud API](https://eu.api.ovh.com/console/).
You can then list all available regions using the following API call:

🇪🇺EU▾

[GET/cloud/project/{serviceName}/region](https://eu.api.ovh.com/console/?section=/cloud&branch=v1#get-/cloud/project/-serviceName-/region)

Then use the following API call:

🇪🇺EU▾

[POST/cloud/project/{serviceName}/region/{regionName}/instance/{instanceId}/snapshot](https://eu.api.ovh.com/console/?section=/cloud&branch=v1#post-/cloud/project/-serviceName-/region/-regionName-/instance/-instanceId-/snapshot)

Fill in the variables:
- **instanceId**: The unique instance ID.
- **regionName**: The region name where the source instance is located.
- **serviceName**: The OVHcloud project ID.
- **distantRegionName (optional)**: The remote region name where the distant backup will be stored.
- **distantSnapshotName (optional)**: The name of the distant backup to create in the remote region.
- **snapshotName**: The name of the snapshot (local backup) to create.
:::info
Only create a distant backup if the parameters related to the remote region (**distantRegionName** and **distantSnapshotName**) are provided.
:::


**Via the OpenStack CLI**

Run the following command to display the list of instances:
```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 |
+--------------------------------------+-----------+--------+--------------------------------------------------+--------------+
```
You can list all available regions using the following command:
```bash
$ openstack region list
```

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
```

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 <code className="action">Compute</code> menu on the left, then select <code className="action">Instances</code>.<br />
Then click on the <code className="action">Create Snapshot</code> button to the right of the instance line.
![public-cloud-instance-backup-horizon1](/images/public-cloud/compute/save-an-instance/createbackuphorizon1.png)Fill in the backup name and press the <code className="action">Create Snapshot</code> button.
![public-cloud-instance-backup-horizon2](/images/public-cloud/compute/save-an-instance/createbackuphorizon2.png)

### Creating an automated backup of an instance

:::info
If you want to automate this functionality directly via OpenStack, you can create a Mistral workflow associated with a cron trigger.

:::

Click on the `...
` button to the right of the instance and select `Create an automatic backup
`.
![public-cloud-instance-backup](/images/public-cloud/compute/save-an-instance/createbackup4.png)
You can configure the following backup settings on the next page:

#### **The workflow**

Currently, only one workflow exists. It will create a backup for the instance and its primary volume.

![public-cloud-instance-backup](/images/public-cloud/compute/save-an-instance/createbackup5.png)
#### **The resource**

You can select the instance to back up.

![public-cloud-instance-backup](/images/public-cloud/compute/save-an-instance/createbackup6.png)
#### **The name**

Enter a name for the automatic backup schedule. Take note of the pricing information and create the schedule with `Confirm
`.
![public-cloud-instance-backup](/images/public-cloud/compute/save-an-instance/createbackup7.png)
#### **The schedule**

You can set up a custom backup schedule or choose one of the default frequencies:

- Daily backup with retention of the last 7 backups
- Daily backup with retention of the last 14 backups

![public-cloud-instance-backup](/images/public-cloud/compute/save-an-instance/createbackup8.png)

**Adding a remote backup**

Click the <code className="action">Add a remote backup</code> button, select a location, review the pricing information, and click the <code className="action">Create</code> button.
![public-cloud-instance-backup-distant](/images/public-cloud/compute/save-an-instance/createbackup8distant.png)

### Managing backups and schedules

Schedules can be created and deleted in the `Workflow Management
` section, which is located under **Compute**
 in the left-hand menu.
![public-cloud-instance-backup](/images/public-cloud/compute/save-an-instance/createbackup9.png)
Your instance backups are managed in the Public Cloud `Instance Backup
` section, which can be found under **Compute**
 in the left-hand menu.
![public-cloud-instance-backup](/images/public-cloud/compute/save-an-instance/createbackup10.png)
:::warning
The instance backup option must be deleted separately if you no longer wish to be billed for it. Deleting an instance does not delete the options attached to it.

:::

:::warning
**Note that you cannot delete an instance backup if an instance that has been spawned from this backup is running at the time of the delete action.**

:::

Find out how to use backups to clone or restore instances in [this guide](/en/guides/public-cloud/compute/create-restore-a-virtual-server-with-a-backup.md).

## Go further

[Using instance backups to create or restore an instance](/en/guides/public-cloud/compute/create-restore-a-virtual-server-with-a-backup.md)

Join our [community of users](https://community.ovhcloud.com/).
