{"id":48186437,"url":"https://github.com/ossc-db/pg_rman","last_synced_at":"2026-04-04T17:49:53.943Z","repository":{"id":34466929,"uuid":"38403542","full_name":"ossc-db/pg_rman","owner":"ossc-db","description":"Backup and restore management tool for PostgreSQL","archived":false,"fork":false,"pushed_at":"2026-02-06T02:36:51.000Z","size":1797,"stargazers_count":500,"open_issues_count":29,"forks_count":79,"subscribers_count":30,"default_branch":"master","last_synced_at":"2026-02-06T11:55:34.718Z","etag":null,"topics":["backup","pitr","postgresql","restore"],"latest_commit_sha":null,"homepage":"http://ossc-db.github.io/pg_rman/index.html","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ossc-db.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":"COPYRIGHT","agents":null,"dco":null,"cla":null}},"created_at":"2015-07-02T01:10:23.000Z","updated_at":"2026-02-06T02:31:16.000Z","dependencies_parsed_at":"2023-01-15T07:15:31.494Z","dependency_job_id":"eb962867-abf3-44b0-94bc-36b1dd42d943","html_url":"https://github.com/ossc-db/pg_rman","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/ossc-db/pg_rman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossc-db%2Fpg_rman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossc-db%2Fpg_rman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossc-db%2Fpg_rman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossc-db%2Fpg_rman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ossc-db","download_url":"https://codeload.github.com/ossc-db/pg_rman/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ossc-db%2Fpg_rman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31407655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","pitr","postgresql","restore"],"created_at":"2026-04-04T17:49:53.267Z","updated_at":"2026-04-04T17:49:53.935Z","avatar_url":"https://github.com/ossc-db.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"pg_rman\n=======\npg_rman is an online backup and restore tool for PostgreSQL.\n\nThe goal of the pg_rman project is to provide a method for online backup\nand PITR that is as easy as pg_dump. Also, it maintains a backup catalog\nper database cluster. Users can maintain old backups including archive\nlogs with one command.\n\nBranches\n--------\nThere are several branches within pg_rman repository in order to work with\ndifferent PostgreSQL server versions without introducing server version\ncheck code blocks.  Please choose a branch to match the PostgreSQL version\nyou will be building pg_rman against.\n\n* master : branch for PostgreSQL 19 [![Test](https://github.com/ossc-db/pg_rman/actions/workflows/build.yml/badge.svg?branch=master\u0026event=push)](https://github.com/ossc-db/pg_rman/actions/workflows/build.yml)\n* REL_18_STABLE : branch for PostgreSQL 18 [![Test](https://github.com/ossc-db/pg_rman/actions/workflows/build.yml/badge.svg?branch=REL_18_STABLE\u0026event=push)](https://github.com/ossc-db/pg_rman/actions/workflows/build.yml)\n* REL_17_STABLE : branch for PostgreSQL 17 [![Test](https://github.com/ossc-db/pg_rman/actions/workflows/build.yml/badge.svg?branch=REL_17_STABLE\u0026event=push)](https://github.com/ossc-db/pg_rman/actions/workflows/build.yml)\n* REL_16_STABLE : branch for PostgreSQL 16 [![Test](https://github.com/ossc-db/pg_rman/actions/workflows/build.yml/badge.svg?branch=REL_16_STABLE\u0026event=push)](https://github.com/ossc-db/pg_rman/actions/workflows/build.yml)\n* REL_15_STABLE : branch for PostgreSQL 15 [![Test](https://github.com/ossc-db/pg_rman/actions/workflows/build.yml/badge.svg?branch=REL_15_STABLE\u0026event=push)](https://github.com/ossc-db/pg_rman/actions/workflows/build.yml)\n* REL_14_STABLE : branch for PostgreSQL 14 [![Test](https://github.com/ossc-db/pg_rman/actions/workflows/build.yml/badge.svg?branch=REL_14_STABLE\u0026event=push)](https://github.com/ossc-db/pg_rman/actions/workflows/build.yml)\n\nHow to use\n----------\n\nTo take an online backup, use the `backup` command:\n\n````\n$ pg_rman backup --backup-mode=full --with-serverlog\nINFO: copying database files\nINFO: copying archived WAL files\nINFO: copying server log files\nINFO: backup complete\nINFO: Please execute 'pg_rman validate' to verify the files are correctly copied.\n````\n\nTo list all the backups taken so far, use the `show` command:\n\n````\n$ pg_rman show\n =====================================================================\n  StartTime           EndTime              Mode    Size   TLI  Status\n =====================================================================\n 2023-11-28 12:14:03  2023-11-28 12:14:05  FULL   342MB     1  OK\n 2023-11-28 12:13:56  2023-11-28 12:13:57  ARCH    16MB     1  OK\n 2023-11-28 12:13:52  2023-11-28 12:13:53  ARCH    16MB     1  OK\n 2023-11-28 12:13:24  2023-11-28 12:13:26  FULL   375MB     1  OK\n 2023-11-28 12:13:15  2023-11-28 12:13:17  INCR    33MB     1  OK\n 2023-11-28 12:12:48  2023-11-28 12:12:50  INCR    33MB     1  OK\n 2023-11-28 12:12:36  2023-11-28 12:12:38  INCR    33MB     1  OK\n 2023-11-28 12:11:51  2023-11-28 12:12:00  FULL  3366MB     1  OK\n````\n\nTo restore from a backup, use the `restore` command.  Up to PostgreSQL11, note that pg_rman itself generates the `recovery.conf` file required to perform PostgreSQL PITR.\n\n````\n$ pg_ctl stop -m immediate\n$ pg_rman restore\n$ cat data/recovery.signal\n# recovery.signal generated by pg_rman\n$ cat data/pg_rman_recovery.conf\n# added by pg_rman\nrestore_command = 'cp /home/postgres/arclog/%f %p'\nrecovery_target_timeline = '1'\n$ pg_ctl start\n````\n\nAfter to PostgreSQL12, note that pg_rman itself added PostgreSQL PITR related options to `postgresql.conf` file and generates the `recovery.signal` file in $PGDATA.\n\nTo see more options to use with each command, run `pg_rman --help`.\n\nAlso, see the documentation for detailed usage:\n\nhttp://ossc-db.github.io/pg_rman/index.html\n\nHow to build and install from source code\n-----------------------------------------\nGo to the top directory of pg_rman source tree and run the following commands:\n\n````\n $ make\n # make install\n````\n\nThe following packages need to be installed as a prerequisite.\n\n* zlib-devel\n\n\nHow to run regression tests\n---------------------------\nStart PostgreSQL server and run the below command.\n\n````\n $ make installcheck\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossc-db%2Fpg_rman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fossc-db%2Fpg_rman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fossc-db%2Fpg_rman/lists"}