Mercurial Hosting > luan
diff host/doc/backup.txt @ 1632:0344a535b1db
add doc
author | fffilimonov |
---|---|
date | Tue, 14 Dec 2021 07:41:01 +0000 |
parents | |
children | 665049cffc02 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/host/doc/backup.txt Tue Dec 14 07:41:01 2021 +0000 @@ -0,0 +1,17 @@ +s1.luan.software - master db +test.luan.software - slave db + +install: + +brew tap caskroom/versions +brew install postgresql@9.5 + +./addStartupScriptsPostgres.sh + +create replica + +1) mkdir /Users/administrator/replica/s1 (must be empty) + +2) pg_basebackup -h s1.luan.software -D /Users/administrator/replica/s1 -R -P -U administrator --xlog-method=stream + +replace configs with files *.slave from startup/postgres