Disaster Recovery Guide with pgbackrest
Recently, we worked with a client who was manually backing up their 800GB PostgreSQL database using pg_dump, which was growing rapidly and had backups stored on the same server as the database itself. This setup had several critical issues:- Single point of failure: If the server failed, both the database and its backups would be lost.
- No point-in-time recovery: Accidental data deletion couldn’t be undone.
- Performance bottlenecks: Backups consumed local storage, impacting database performance.To address these risks, we replaced their setup with pgBackRest, shifting backups to a dedicated backup server with automated retention policies and support for point-in-time recovery (PITR).This guide will walk you through installing, configuring, and testing pgBackRest in a real-world scenario where backups will be configured on a dedicated backup server, separate from the data node itself.




