pg_rewind
Synchronize a PostgreSQL data directory with another data directory that was forked from it. tldr-pages
On several platforms
Several platforms
Synchronize target directory with source directory
pg_rewind --target-pgdata path/to/target_data --source-pgdata path/to/source_dataIdentifySynchronize target with source server using connection string
pg_rewind --target-pgdata path/to/target_data --source-server connstrIdentifySimulate a synchronization without actually doing it
pg_rewind --target-pgdata path/to/target_data --source-pgdata path/to/source_data --dry-runIdentifyShow progress during synchronization
pg_rewind --target-pgdata path/to/target_data --source-pgdata path/to/source_data --progressIdentifyDisplay help
pg_rewind --helpIdentify