> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/~/revisions/AMiYziCllTKB2y2lmONY/databases/mongodb/dcd-how-tos/restore-mongodb-cluster.md).

# 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/~/revisions/AMiYziCllTKB2y2lmONY/databases/mongodb/overview/backup-and-recovery.md).

MongoDB database cluster backups are available only in the following editions: **MongoDB Business** and **MongoDB Enterprise**.

{% hint style="info" %}
**Note:** 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 under the **MongoDB Clusters** section on the **Databases** page.
{% endhint %}

{% tabs %}
{% tab title="MongoDB Business" %}
1\. In the [<mark style="color:blue;">Data Center Designer</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/getting-started/basic-tutorials/log-in-dcd.md), click **Menu** > **Databases** > **Postgres & MongoDB**.

2\. In the **Databases** window, under the **MongoDB Clusters** section, click the database cluster that is added for the **Business** edition.

![MongoDB Clusters](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-bb79a9d4e506600d41ebdbe91d12e0c3d1af877c%2Fmongodb-clusters-business.png?alt=media)

3\. In the **Snapshots** section, choose the snapshot you want to use for restoring the database cluster from the list of available snapshots.

{% 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/~/revisions/AMiYziCllTKB2y2lmONY/databases/mongodb/overview/backup-and-recovery.md#backups).
* **Size:** Snapshot database cluster size (in MB).
  {% endhint %}

![MongoDB snapshots](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-3251fe9924202293d463d38ca333809dc25cb706%2Fmongodb-cluster-snapshots.png?alt=media)

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

5\. Confirm the database restore from the snapshot by entering your password and clicking **Yes, I'm sure**.

![MongoDB database restore confirmation](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-30511258b548dbad76d7669eb33f8242ac117757%2Fmongodb-cluster-restore-confirm.png?alt=media)

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

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

* The operation of database restore from the snapshot cannot be undone once confirmed. For more information, see [<mark style="color:blue;">Backup and Recovery</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/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 %}
  {% endtab %}

{% tab title="MongoDB Enterprise" %}
1\. In the [<mark style="color:blue;">Data Center Designer</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/getting-started/basic-tutorials/log-in-dcd.md), click **Menu** > **Databases** > **Postgres & MongoDB**.

2\. In the **Databases** window, under the **MongoDB Clusters** section, click the database cluster that is added for the **Enterprise** edition.

![MongoDB Clusters](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-a19adf7fae707dedd364c99695bc496894e0b909%2Fmongodb-cluster-enterprise.png?alt=media)

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

1\. **Restore by time:** Restores 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](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-cac2580afa12fcd6824134fe4856327a3c416f6a%2Fmongodb-cluster-restore-by-time.png?alt=media)

* Confirm the database restore from the snapshot by entering your password and clicking **Yes, I'm sure**.

![MongoDB database restore confirmation](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-30511258b548dbad76d7669eb33f8242ac117757%2Fmongodb-cluster-restore-confirm.png?alt=media)

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

* Click **Restore**.

![MongoDB snapshots](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-ebb48fd0ae8df31b115bc47c485560e77be20368%2Fmongodb-cluster-enterprise-restore.png?alt=media)

* Confirm the database restore from the snapshot by entering your password and clicking **Yes, I'm sure**.

![MongoDB database restore confirmation](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-30511258b548dbad76d7669eb33f8242ac117757%2Fmongodb-cluster-restore-confirm.png?alt=media)

**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/~/revisions/AMiYziCllTKB2y2lmONY/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 %}

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

* The operation of database restore from the snapshot cannot be undone once confirmed. For more information, see [<mark style="color:blue;">Backup and Recovery</mark>](/cloud/~/revisions/AMiYziCllTKB2y2lmONY/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 %}
  {% endtab %}
  {% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.ionos.com/cloud/~/revisions/AMiYziCllTKB2y2lmONY/databases/mongodb/dcd-how-tos/restore-mongodb-cluster.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
