Mercurial Hosting > luan
annotate host/doc/backup.txt @ 1633:665049cffc02
fix path
author | fffilimonov |
---|---|
date | Tue, 14 Dec 2021 07:55:47 -0600 |
parents | 0344a535b1db |
children | fd3d56f39450 |
rev | line source |
---|---|
1632 | 1 s1.luan.software - master db |
2 test.luan.software - slave db | |
3 | |
4 install: | |
5 | |
6 brew tap caskroom/versions | |
7 brew install postgresql@9.5 | |
8 | |
1633 | 9 ./addStartupScriptsPostgres.sh slave_ip |
1632 | 10 |
11 create replica | |
12 | |
13 1) mkdir /Users/administrator/replica/s1 (must be empty) | |
14 | |
15 2) pg_basebackup -h s1.luan.software -D /Users/administrator/replica/s1 -R -P -U administrator --xlog-method=stream | |
16 | |
17 replace configs with files *.slave from startup/postgres |