Last active
December 23, 2016 16:57
-
-
Save sebastianwebber/e411ae7e0c7a73136c239fd3a3f5e837 to your computer and use it in GitHub Desktop.
pg_basebackup for slave
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## postgres=# create user replicator replication password 'teste'; | |
pg_basebackup -U replicator -h 192.168.100.100 -D /var/lib/pgsql/9.3/data --write-recovery-conf --xlog-method=stream --progress --verbose --checkpoint=fast |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment