Home / Companies / PlanetScale / Blog / Post Details
Content Deep Dive

Postgres backups under the hood

Blog post from PlanetScale

Post Details
Company
Date Published
Author
-
Word Count
3,445
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

Postgres backups are crucial for data integrity and recovery in case of system failure, with three primary methods: logical backups using pg_dump, file system backups, and continuous archiving. Logical backups provide a snapshot of the database's current state without saving physical layouts, making them useful for migrations but not for point-in-time recovery (PITR). File system backups are faster but require the database to be offline unless using atomic file system snapshots. Continuous archiving, the most complex method, combines file system backups with the write-ahead log (WAL), allowing for backups without downtime and enabling PITR by replaying WAL logs. This method is essential for large databases, reducing restore times and supporting cluster resizing by continuously saving WAL segments to external storage. Despite these strategies, extremely large databases may still face lengthy backup and restore times, necessitating advanced solutions like distributed Postgres for scaling backup processes.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.