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:Documentation Index
Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
Use this file to discover all available pages before exploring further.
- 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.
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.- Web console
- CLI
- Terraform
On the cluster creation page (
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 theRunning status.
To create a backup:
- Web console
- CLI
- In the sidebar, go to
Storage → PostgreSQL.
- Open the page of the required cluster and then go to the Backups tab.
- Click
Create backup.
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:- Web console
- CLI
-
In the sidebar, go to
Storage → PostgreSQL.
- Switch to Backups. Alternatively, open the page of the required cluster and switch to Backups.
-
Launch restoration:
- For an automatic backup, click Restore.
- For a manual backup, click
→ Restore.
- 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:- Web console
- CLI
- In the sidebar, go to
Storage → PostgreSQL.
- Open the page of the required cluster and then go to the Backups tab.
- In the row of the required manual backup, click
→ Delete.
Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.