February 2020
Intermediate to advanced
734 pages
38h 13m
English
Assuming we have our old server (pg-old) and a new server (pg-new) to act as the subscriber, and our database to be copied is named myapp and stored in /db/pgdata, follow these instructions:
initdb -D /db/pgdata
pg_dumpall -g -h pg-old -U rep_user \ -f global_objects.sql --database postgres
psql -f global_objects.sql
createdb myapp
Read now
Unlock full access