pgcopydb copies a PostgreSQL database to a target server. It uses logical replication for live copies and supports large databases with minimal downtime.
pgcopydb is a tool that helps you copy a PostgreSQL database from one server to another. Unlike simple pg_dump/pg_restore, pgcopydb is designed for production use with features like live replication and incremental copy.
# From source
git clone https://github.com/dimitri/pgcopydb.git
cd pgcopydb
make
pgcopydb is also available as a Docker image:
docker pull dimitri/pgcopydb
pgcopydb copy --source "postgres://source:5432/db" --target "postgres://target:5432/db"
Get professional support and maintenance for pgcopydb in your production environment.