Sync Postgres data between databases with support for large tables
Sync Postgres data between databases
pgsync$ pgsync --source postgresql://user:pass@localhost/source_db --destination postgresql://user:pass@localhost/dest_db --tables users,orders$ pgsync --source postgresql://user:pass@localhost/source_db --destination postgresql://user:pass@localhost/dest_db --truncate$ pgsync --source postgresql://user:pass@localhost/source_db --destination postgresql://user:pass@localhost/dest_db --tables orders --where 'created_at > 2024-01-01'