Mercurial Hosting > luan
annotate host/doc/backup.txt @ 1639:59731f7c24ce
host - remove unused file password.nginx
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 21 Dec 2021 16:27:44 -0700 |
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 |