# Backups and restoring

> Daily backups and point-in-time restore to any minute of the last 7 days, extra backups, and restoring into a new database.

Source: https://docs.phluit.com/products/managed-databases/backups-and-restore/

## How backups work

A backup is taken every day and every change is saved in between, so you can go back to any minute of the last 7 days. The first backup is taken within a day of creating the database. The **Backups** tab shows the daily backups and the window you can restore: **Point in time: any moment from … to … UTC**.

**Back up now** takes an extra backup, up to 3 a day.

## Restore

A restore always goes into a **new database**, so the current one stays as it is.

1. Open your database and go to the **Backups** tab.
2. Click **Restore…** next to a backup, or choose a moment under **Point in time** and click **Restore this moment…**.
3. The create page opens with the restore filled in: same engine, version and location. Choose a plan (its storage must be at least what the database uses) and a name, and order it.

When it's ready, point your app to the new database. You can then delete the old one.

MySQL restores briefly run with at least 2 GB of memory and return to the plan's size afterwards.

## Your own copies

For a copy you keep yourself, use `pg_dump` (PostgreSQL) or `mysqldump` (MySQL). See [Move your data in or out](/products/managed-databases/move-your-data-in/).
