Description
pg_rman is an open-source command-line tool for online backup and point-in-time recovery of PostgreSQL. The project aims to make online backup as easy to start as pg_dump. It keeps a backup catalog for each database cluster, so you can list the backups you have taken and keep older ones together with their archive logs in one command. The main commands are backup, show and restore. When you restore, pg_rman writes the recovery settings for your PostgreSQL version: up to PostgreSQL 11 it generates recovery.conf, and from PostgreSQL 12 it adds the recovery options to postgresql.conf and creates recovery.signal in the data directory. The repository has one branch per PostgreSQL version, from 14 to 18, plus a master branch for 19, so you build the branch that matches your server. Building needs zlib development files, and the project includes regression tests. Full documentation is on the project's GitHub Pages site.…
Highlights
- Online backup of a PostgreSQL cluster
- Point-in-time recovery
- Backup catalog for each cluster
- Keep old backups with archive logs
- One branch per PostgreSQL version
Ratings & Reviews
No ratings yet
Be the first to rate PG Rman.
People also visit
Databasus
PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
PG Rman FAQ
What does pg_rman do?
It takes online backups of a PostgreSQL cluster, restores them, including point-in-time recovery, and keeps a catalog of the backups it has taken.
Which PostgreSQL versions are supported?
Each version has its own branch. The README lists branches for PostgreSQL 14 through 18 and a master branch for PostgreSQL 19, so build the branch that matches your server.
How do I install pg_rman?
Build it from the source tree as the README describes, after installing the zlib development package. The repository also includes regression tests you can run.
How do I take and restore a backup?
Use the backup command to take an online backup, show to list backups, and restore to restore one. Run pg_rman --help to see the options for each command.
Is pg_rman open source?
Yes. The source code is public on GitHub under the ossc-db organization.
What are the best PG Rman alternatives?
Popular alternatives to PG Rman include PG Probackup, Barman and Pgmoneta. See all PG Rman alternatives


