Reliable PostgreSQL backup and restore
open sourceMITself-hostablefree
pgBackRest is a backup and restore tool for PostgreSQL with parallel, compressed full, differential and incremental (including block-level) backups, WAL archiving for point-in-time recovery, repository encryption, delta restore and backup from standby. Repositories can live on S3, Azure, GCS, SFTP or a backup host.
Ways to install
Package managers
Problems it solves
- pg_dump takes hours on our 2TB database and restores even slower
- restore Postgres to exactly 14:32 yesterday before someone dropped a table
- ship Postgres backups and WAL to S3 encrypted
- incremental backups so we don't copy the whole database every night
- take backups from a replica so the primary isn't loaded
- verify our backups are actually restorable
- rebuild a replica quickly from a backup instead of a full copy
- our backups have never been tested and that scares me
Features
- parallel backup and restore
- full/diff/incremental and block incremental
- S3/Azure/GCS/SFTP repositories
- encryption
- delta restore
- backup from standby
- checksum validation
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what pgBackRest does.
- WAL-G Archival and restoration for databases in the cloud
- Barman Backup and Recovery Manager for PostgreSQL
- Databasus PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
- Supabase The Postgres development platform
- Neon Serverless Postgres with branching, autoscaling and scale to zero
- Barman Cloud Plugin The reference CNPG-I backup/restore plugin for Barman Cloud