CmdID

CmdID / Commands

pg_rewind

Synchronize a PostgreSQL data directory with another data directory that was forked from it. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Synchronize target directory with source directory

pg_rewind --target-pgdata path/to/target_data --source-pgdata path/to/source_dataIdentify

Synchronize target with source server using connection string

pg_rewind --target-pgdata path/to/target_data --source-server connstrIdentify

Simulate a synchronization without actually doing it

pg_rewind --target-pgdata path/to/target_data --source-pgdata path/to/source_data --dry-runIdentify

Show progress during synchronization

pg_rewind --target-pgdata path/to/target_data --source-pgdata path/to/source_data --progressIdentify

Display help

pg_rewind --helpIdentify