# Restore a MongoDB Cluster

You can restore a MongoDB cluster by using a snapshot reference. A cluster can have multiple snapshots for backup and are retained for seven days; hence, cluster recovery is possible for up to a week from the current date. For more information, see [<mark style="color:blue;">Backup and Recovery</mark>](/cloud/databases/mongodb/overview/backup-and-recovery.md).

{% hint style="info" %}
**Note:** MongoDB database cluster backups are available only in the following editions: **Business** and **Enterprise**. Backups are disabled for the **Playground** edition.
{% endhint %}

## Restore a Cluster

{% hint style="info" %}
**Note:**

* All the available MongoDB clusters that are part of your contract are listed on the **MongoDB cluster overview** page.
* You cannot revert the database restore operation once confirmed. For more information, see [<mark style="color:blue;">Backup and Recovery</mark>](/cloud/databases/mongodb/overview/backup-and-recovery.md).
* You cannot initiate a new database restore of a cluster from a snapshot when a restore is already in progress.
  {% endhint %}

{% tabs %}
{% tab title="Business" %}
1\. In the **DCD**, go to **Menu** > **Databases** > **MongoDB**.

2\. In the **MongoDB cluster overview** window, select the database cluster that is added for the **Business** edition by selecting a cluster from the list by clicking on its name or by selecting **Details** in the **OPTIONS** column.

![MongoDB cluster overview](/files/dLFP9l9i1FEjGGe7pAl9)

3\. Select **Backups**.

4\. In the **Backups** tab, choose the snapshot you want to use for restoring the database cluster from the list of available snapshots. Each snapshot displays the following details:

* **Version:** The MongoDB version number of the database cluster.
* **Created:** A date and time when the database snapshot was created. For more information on instances when the snapshots are added, see [<mark style="color:blue;">Backups</mark>](/cloud/databases/mongodb/overview/backup-and-recovery.md#backups).
* **Size:** Snapshot database cluster size (in MB).

![MongoDB snapshots](/files/M8tztNryGKB4NgdmjPlZ)

5\. Click **Restore** on the snapshot selected for restoring the data in the cluster.

{% hint style="success" %}
**Result:** The database restore from the selected snapshot is successfully initiated.
{% endhint %}
{% endtab %}

{% tab title="MongoDB Enterprise" %}
1\. In the **DCD**, go to **Menu** > **Databases** > **MongoDB**.

2\. In the **MongoDB cluster overview** window, select the database cluster that is added for the **Enterprise** edition by selecting a cluster from the list by clicking on its name or by selecting **Details** in the **OPTIONS** column.

![MongoDB cluster overview](/files/sLfwx0PAOGkwSHfZzsvn)

3\. In the **Backups** tab, choose from the following two options to restore a database cluster:

a. **Point-in-time recovery:** Select **Point-in-time recovery** to restore the database cluster from a specific point-in-time of the database backup.

* Choose the backup time from the calendar displayed and click **Save**. The number of hours in the past from which the backup is possible is between 1 and 24 hours. The default value is 24 hours.

![Restore by time](/files/NK4GBUZDa1YhYLWxsnOY)

* You will receive a confirmation message that the backup is being restored.

![MongoDB database restore initiated](/files/FK36E9N2BET7oiqdaYA9)

b. **Restore:** Choose the snapshot you want to use for restoring the database cluster from the list of available snapshots.

* Click **Restore**.
* Confirm the database restore from the snapshot by clicking **Restore**.

{% hint style="info" %}
**Note:** Each snapshot displays the following details:

* **Version:** The MongoDB version number of the database cluster.
* **Created:** A date and time when the database snapshot was created. For more information on instances when the snapshots are added, see [<mark style="color:blue;">Backups</mark>](/cloud/databases/mongodb/overview/backup-and-recovery.md#backups).
* **Size:** Snapshot database cluster size (in MB).

{% hint style="success" %}
**Result:** The database restore from the selected snapshot is successfully initiated.
{% endhint %}
{% endhint %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionos.com/cloud/databases/mongodb/how-tos/restore-mongodb-cluster.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
