Skip to content

Instantly share code, notes, and snippets.

View lvrfrc87's full-sized avatar
🏠
Working from home

Federico87 lvrfrc87

🏠
Working from home
View GitHub Profile
MASTER_IP=
SLAVE_IP=
# service postgresql stop
su - postgres
psql -c "CREATE ROLE replica WITH PASSWORD 'myreplpassword' LOGIN REPLICATION;"
#Security for master allow standby access
echo "host replication replica $SLAVE_IP/32 md5" >> /etc/postgresql/9.6/main/pg_hba.conf