# Restore a PostgreSQL Cluster

With IONOS Cloud DBaaS, you may roll back your PostgreSQL clusters to a previous point in time or use it to create a new cluster. This reliable function prevents data loss and downtime in unexpected situations.

For example, consider that certain values were accidentally deleted from your cluster around 11 hours today. The easiest way to recover missing data is to restore a backup before 11 hours.

{% hint style="info" %}
**Note:** You can restore only one backup at a time, and you must wait for the restoration process to finish before restoring another backup.
{% endhint %}

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

* The backup must belong to the PostgreSQL cluster to be restored.
* The cluster must be in the **AVAILABLE** state.
  {% endhint %}

## Restore a Cluster

To restore a cluster, follow these steps:

1\. In the **DCD**, go to **Menu** > **Databases** > **PostgreSQL**.

2\. Select a cluster from the list by clicking on its name. Alternatively, click **Details** in the **OPTIONS** column.

![Select a PostgreSQL cluster](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-af54a17bc63cb13c77190d3b2602b55b8640f163%2Fpostgres-manage-cluster.png?alt=media)

3\. The **Cluster details** tab displays the necessary information of the chosen cluster. For more information, see [<mark style="color:blue;">View PostgreSQL Cluster Details</mark>](https://docs.ionos.com/sections-test/guides/databases/postgresql/how-tos/view-cluster-details).

4\. Select **Backups** to view the list of backups. **Point-in-time recovery** displays the earliest backup available for restoration. Select **Restore backup** for backup restoration.

![Point in time recovery option](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-efaf428d3bcd358508c7df8445888d211786000e%2Fpostgres-self-restore-recovery.png?alt=media)

a. In the **Restore backup** pop-up window, click within the text box to open the Calendar.

b. Select date and time. Backups are available only for those dates that are available for selection.

c. Select **Restore** to proceed with the restoration.

![Restore the chosen backup](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-929c19d0a804b5e850068e6e9c0eccdffc2ae30e%2Fpostgres-restoring-date-and-time.png?alt=media)

{% hint style="success" %}
**Result:** You will receive a confirmation that the cluster will be restored, and the respective cluster's **STATE** is set to **Busy**.
{% endhint %}
