pgBackRest backs up and restores PostgreSQL databases with parallel processing, WAL archiving, and object-store repositories. It targets large databases and enterprise retention needs.
Overview
pgBackRest is a backup and restore tool built for PostgreSQL. It is designed to scale to very large databases and heavy workloads through parallel backup and restore, streaming compression, and efficient algorithms such as lz4 and zstd.
Backups can run locally or remotely over TLS or SSH with a custom protocol, so direct network access to PostgreSQL is not required for remote repository hosts. You can use multiple repositories—for example a local store for fast recovery and a remote one for longer retention. Full, differential, and incremental backups are supported at file or block level, including backup from a standby to reduce load on the primary.
Integrity features include checksums on every file, page checksum validation when enabled, backup resume after interruption, and retention policies for backups and WAL archives. Repositories can live on S3, Azure, GCS-compatible object storage, or SFTP, with optional encryption and point-in-time recovery on versioned object stores for ransomware protection.
Dedicated commands push and fetch WAL asynchronously with parallelism. Tablespaces and cluster links are supported with remap options on restore. The tool supports multiple PostgreSQL versions from a single codebase.
Key features
- Parallel backup and restore
- Local or remote TLS/SSH operation
- Multiple backup repositories
- Full, differential, incremental backups
- WAL push and get commands
- S3, Azure, GCS, and SFTP repos
- Encrypted repositories
- Backup resume and delta restore
Use cases
- PostgreSQL disaster recovery
- WAL archiving for point-in-time recovery
- Large database backup at scale
- Offsite backup to object storage
- Standby-based backups