Skip to main content
Managed Service for PostgreSQL protects the data that you store in your clusters and creates backups for them. The service supports two types of backups:
  • Automatic backups that Managed Service for PostgreSQL creates daily based on the cluster configuration that you set.
  • Manual (or on-demand) backups that you create. You can also delete them later.
Once a backup is created, you can restore a cluster from it.

How to configure automatic backups

When you create a Managed PostgreSQL cluster, you can configure at what time of day the service creates automatic backups and how long it stores them.
You cannot change the backup settings after you create a cluster.
On the cluster creation page (https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/sidebar/storage.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=0a2dad6b48aea10e85f6f3e2343aee26 Storage → PostgreSQL → Create cluster), find Backup settings.You can configure the following settings of automatic backups:Start of backup windowThe time when Managed PostgreSQL starts creating automatic backups. The service backs up clusters daily. The time is specified in UTC+00:00. Format: HH:MM:SS; e.g., 00:30:00. Default value: 00:02:00.Retention periodThe number of days Managed PostgreSQL stores an automatic backup after creating it. This is how far back you can restore the cluster. The retention period also applies to the cluster’s write ahead log (WAL). Default and minimum value: 7d (7 days). Maximum value: 30d (30 days).

How to create a backup

Before you begin, make sure that your Managed PostgreSQL cluster has the Running status. To create a backup:
  1. In the sidebar, go to https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/sidebar/storage.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=0a2dad6b48aea10e85f6f3e2343aee26 Storage → PostgreSQL.
  2. Open the page of the required cluster and then go to the Backups tab.
  3. Click https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/plus.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=7c9efc69d65fc58db0eb73702fd81aa1 Create backup.
After that, a new backup appears in the list.

How to restore a cluster from a backup

When you restore from a backup, you create a new Managed PostgreSQL cluster. In this new cluster, the target host disks must be at least as large as the source host disks. You can configure the rest of the settings differently from the source cluster. You can restore from a backup not only existing clusters, but also deleted ones. After you delete a cluster, Managed PostgreSQL stores its backups for the retention period. To restore a cluster from a backup:
  1. In the sidebar, go to https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/sidebar/storage.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=0a2dad6b48aea10e85f6f3e2343aee26 Storage → PostgreSQL.
  2. Switch to Backups. Alternatively, open the page of the required cluster and switch to Backups.
  3. Launch restoration:
    • For an automatic backup, click Restore.
    • For a manual backup, click https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/button-vellipsis.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=e80b8e57c43bfd117679262e6a1334ad → Restore.
  4. In the form that opens, configure and create a new cluster that will be restored from the backup. For configuration details, see Working with your Managed Service for PostgreSQL® cluster. When you fill out the form for an automatic backup, you can specify an optional recovery time. This is the moment to which the cluster state should be returned. Managed PostgreSQL supports the Point-in-Time Recovery (PITR) technology. This technology allows you to restore a cluster to any moment, from creation of the oldest backup to archiving the most recent write-ahead log (WAL). If you specify a desired time and receive the error that a WAL has not been archived yet, wait a while for the WAL to be archived. The archiving process takes some time, especially if the cluster does not have any workloads.

How to delete a manual backup

You can only delete manual backups that you created. You cannot delete automatic backups. Conversely, Managed PostgreSQL cannot delete manual backups, only automatic ones. To delete a manual backup:
  1. In the sidebar, go to https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/sidebar/storage.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=0a2dad6b48aea10e85f6f3e2343aee26 Storage → PostgreSQL.
  2. Open the page of the required cluster and then go to the Backups tab.
  3. In the row of the required manual backup, click https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/button-vellipsis.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=e80b8e57c43bfd117679262e6a1334ad → Delete.
After that, the deletion confirmation is displayed. The backup is deleted in a few seconds.

Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.