Managed PostgreSQL Backups
Each Managed Database plan includes automated backups. The backup retention period depends on the backup tier, independently of the cluster node count: Mini (3 days) with Developer compute plans, and Regular (15 days) or Extended (31 days) with Standard and High Memory compute plans. Legacy plans retain backups for 3, 15, or 31 days, depending on the plan. This allows users to restore to any given point in time (PITR) within the selected retention window.
The backup time configuration can be adjusted in the service settings, which will shift the backup schedule accordingly. If a recent backup was taken, it might require an additional backup cycle before the new schedule takes effect.
The databases are backed up with a full backup made daily, and the write-ahead log (WAL) is copied continuously at 5-minute intervals, or for every new file generated. All backups are encrypted using pghoard.
All backups are encrypted and stored off-site independently of the user’s Managed Database without using the cluster’s storage capacity.
Full Backups
Full backups are version-specific binary backups that capture the entire PostgreSQL® instance, including uncommitted transactions, deleted and updated rows that haven't been cleaned up, and all data from indexes. They can be restored with the same PostgreSQL version as the backup was created from, enabling consistent recovery to a specific point in time (PITR) when combined with WAL files. Restoring from a full backup is almost instantaneous, requiring only the restore of the backup and replaying of delta WAL files.
Delta Base Backups
PostgeSQL databases use delta base backups efficiently to store only the changed data since the last backup, omitting unchanged files. This approach is especially useful for databases with large static data portions. It enhances backup performance and speed, especially for large databases with significant data volumes. With delta base backups, more frequent backups are possible, potentially speeding up service restoration and node replacement due to fewer WAL files to restore.
Restore to a point in time
You can restore a database as it was at any point in its backup retention period. The restore creates a new service and leaves the original as it is. The new service has its own hostname, and it keeps the original's users and passwords, its configuration properties and its termination protection setting.
In the Control Panel, the new service is created in the original's location, with the original's plan and networks. Through the API, you can choose another location and plan.
To restore a database, see How to restore a Managed Database to a point in time.
PostgreSQL is a registered trademark of the PostgreSQL Community Association of Canada, and used with their permission.