pg11 barman

pg主机:

开用户

createuser -s -P barman

密码barman1234

创建replication用户

 createuser -P --replication streaming_barman

密码streaming_barman1234

 

ssh-keygen

 

 

 

barman主机:

密码写入~barman/.pgpass

pg:5432:postgres:barman:barman1234
192.168.219.30:5432:postgres:barman:barman1234
pg:5432:postgres:streaming_barman:streaming_barman1234
192.168.219.30:5432:postgres:streaming_barman:streaming_barman1234

使用barman的linux系统用户

psql -c 'select version()' -U barman -h 192.168.219.30 postgres

sudo -u barman psql -U streaming_barman -h pg \
 -c "IDENTIFY_SYSTEM" \
 replication=1

 

ssh-keygen

 

上一篇:Docker 安装 postgreSQL 11.4


下一篇:Docker安装PostgreSQL