annotate host/doc/backup.txt @ 1633:665049cffc02

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