Mercurial Hosting > luan
annotate host/doc/backup.txt @ 1676:daa4214fa91a
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 30 May 2022 19:29:32 -0600 |
parents | fd3d56f39450 |
children |
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 | |
1635
fd3d56f39450
rearrange startup files
Franklin Schmidt <fschmidt@gmail.com>
parents:
1633
diff
changeset
|
9 cd macos |
1633 | 10 ./addStartupScriptsPostgres.sh slave_ip |
1632 | 11 |
12 create replica | |
13 | |
14 1) mkdir /Users/administrator/replica/s1 (must be empty) | |
15 | |
16 2) pg_basebackup -h s1.luan.software -D /Users/administrator/replica/s1 -R -P -U administrator --xlog-method=stream | |
17 | |
18 replace configs with files *.slave from startup/postgres |