# ankane/pgsync

Sync data from one Postgres database to another

Repository: https://github.com/ankane/pgsync
Canonical: https://ross.abutalabs.com/products/pgsync
Language: Ruby
License: MIT
License Family: permissive
Topics: postgresql
Last push: 2026-08-15T21:07:28+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 3921, "days_push": 18, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3468, forks 219 (observed 2026-08-28T04:08:05.863663+00:00)

## What it is
pgsync is a Ruby command-line tool that syncs data from one Postgres database to another, similar to pg_dump/pg_restore. It transfers tables in parallel, supports partial and grouped table syncs, and includes safeguards to keep sensitive data from leaving the server.

## Use cases
- sync data from one postgres database to another
- copy production data to a local development database
- sync specific tables or rows between postgres databases
- refresh staging database with production data safely
- sync a record and its related records across databases
- handle schema differences when syncing postgres data

## When to choose
- you need fast, parallel data transfer between two Postgres databases
- you want to sync partial tables, filtered rows, or related record groups
- you need to avoid copying sensitive data off a server
- your databases may have slightly different schemas

## When to avoid
- you need to sync between different database engines, not just Postgres
- you need continuous or real-time replication rather than one-off syncs
- you need to sync schema changes as the primary goal - use a migration tool

## Facets
- artifact type: cli-tool
- maturity: active
- function: database, etl, cli
- domain: databases, developer-tools
- platform: cli
- tags: postgresql, data-sync, pg-dump, ruby, database-utilities, data-engineering, macos, linux, docker

## Member repositories
- ankane/pgsync (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:05.863663+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:36:39.850270+00:00, confidence not recorded.
  - readme: https://github.com/ankane/pgsync (fetched 2026-08-28T04:08:05.863663+00:00, sha 53905a42f1be)
- Data as of 2026-08-30T08:39:29.467469+00:00.
