comparison host/doc/backup.txt @ 1632:0344a535b1db

add doc
author fffilimonov
date Tue, 14 Dec 2021 07:41:01 +0000
parents
children 665049cffc02
comparison
equal deleted inserted replaced
1631:35c626c06dd5 1632:0344a535b1db
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
9 ./addStartupScriptsPostgres.sh
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