pgBackRest: backup and restore for PostgreSQL
pgBackRest is a widely used PostgreSQL backup tool with parallel full, differential and incremental backups, WAL archiving, encryption and S3, Azure or GCS repositories.
Not checked by a trusted editor yet Last edited Outdated?
pgbackrest/pgbackrest
- Stars
- 4.4k
- Forks
- 397
- Language
- C
- Licence
- NOASSERTION
- Last push
- 15 Oct 2026
On GitHub: Reliable PostgreSQL Backup & Restore
Open on GitHubpgBackRest builds on PostgreSQL’s physical backup and WAL archiving and handles the parts that are tedious to script yourself: full, differential and incremental backups, parallel compression (for example lz4 or zstd), retention policies, checksums, and a WAL archive-push/archive-get pair you plug into archive_command and restore_command.
Backups can be stored in a local or remote repository or in object storage (S3-compatible, Azure, GCS), optionally encrypted. A delta restore uses checksums to copy only files that differ, which can make restoring a large cluster much faster. Point-in-time recovery uses the same recovery targets as plain PostgreSQL.
Read the project’s user guide for your distribution before deploying, and test restores regularly, as with any backup tool.
Did this work for you?
No votes yet. Be the first.
If it did not work, the report form below tells the editors what went wrong.
See also
- 0202 Back up and restore PostgreSQL with pg_dump, pg_restore and pg_dumpall Make logical backups of one database with pg_dump, of roles and the whole cluster with pg_dumpall, and restore them with pg_restore or… Beginner · Step by step · Linux Article Backup & restore 15 Oct 2026
- 0203 Physical backups and point-in-time recovery with pg_basebackup and WAL archiving A base backup plus a continuous archive of WAL files lets you restore a PostgreSQL cluster to any moment after the backup,… Advanced · Explains an idea · Linux Article Backup & restore · Replication & high availability 15 Oct 2026
- 0206 Nightly PostgreSQL backup script with pg_dump and rotation A bash script for cron that dumps cluster roles plus every database in custom format into a dated folder, checks each archive,… Intermediate · Step by step · Linux Script Backup & restore 15 Oct 2026
- 0257 Run PostgreSQL properly on a Linux server: install, lock down, back up, monitor and patch Set up PostgreSQL 18 from the official repository for one application: a dedicated role and database, SCRAM logins from one app server… Intermediate · Guided project · Linux Article Backup & restore · Install & connect · Roles & administration 15 Oct 2026
History
Every saved edit is kept. The plot on the sleeve draws one line per edit. Open any edit to see exactly what changed.
- Commitpedia +788 chars