Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Latest commit

 

History

History
19 lines (12 loc) · 489 Bytes

File metadata and controls

19 lines (12 loc) · 489 Bytes

postgres-scripts

Only tested on SmartOS.

Dependencies

Start replication

Creating a new replica from a master:

export PATH=/opt/local/postgres-9.3.0/bin:$PATH
\curl -L https://raw.github.com/wanelo/postgres-scripts/master/replicate.sh | time bash -s <master_ip> /var/pgsql/data93

Ensure that the pg_basebackup binary for your version of Postgres is in PATH before running this script.