> For the complete documentation index, see [llms.txt](https://docs.glesys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glesys.com/products/database/how-tos/point-in-time-recovery.md).

# Point-in-time recovery

With point-in-time recovery, you can restore your database to any moment within the retention window. A restore always creates a new instance. Your current database is left untouched.

***

You'll find Point-in-time recovery on the overview page for your database. Here you'll see the retention period, the earliest and latest restore point.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FPNLVBUZA7CORprPoz4Ca%2Fdbaas-point-in-time-recovery-overview.png?alt=media&amp;token=b71963e9-1400-4d3a-8404-36a5d8503950" alt=""><figcaption></figcaption></figure>

## Restore a database

Restoring a database does not overwrite your current database. Instead, a new database will be created from the point-in-time backup.

To restore a database, click **Restore** in the *Point-in-time recovery* overview.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2F7dogUI471HxzbX9eOkpO%2Fdbaas-point-in-time-recovery-restore.png?alt=media&amp;token=e71b8c29-4362-407c-a686-73c89ce7e91c" alt=""><figcaption></figcaption></figure>

Next, you can choose to recover from a predefined point in time, such as **Latest**, **1 hour ago**, or **Earliest**, or select your own specific time. In the example below, we've selected a specific time.

Select a **name** for the new instance, a **plan**, and the **data center**. You can keep the predefined values to recover to the current data center using the current plan. You can also upgrade the recovered database to a different plan, or recover to a different data center.

Once you're satisfied, click **Restore**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2Fz7T2KRFZz6zKRuRoWwYr%2Fdbaas-point-in-time-recovery-select-time.png?alt=media&amp;token=5818bf19-f56f-4b25-91fa-e2360cc96a0d" alt=""><figcaption></figcaption></figure>

A new database instance will now be created, containing the data from the specific point in time you selected. Since this is a new instance, it has a new hostname.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FfbKSwdtuAQEKMFnZERaD%2Fdbaas-point-in-time-recovered.png?alt=media&amp;token=64af2385-3e55-43d5-ac90-b3c407822a77" alt=""><figcaption></figcaption></figure>
