Skip to content

Commit 75d8cbb

Browse files
author
Andre Wanderley de Souza
committed
update barman instructions
1 parent 724c7ef commit 75d8cbb

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,32 @@ docker exec -it pg-pgbouncer-1 psql -U postgres -c "select client_addr, state, s
6969
#### BARMAN
7070
docker run --name pg-barman-1 --network pg_stream -e BARMAN_PASSWORD=$BARMAN_PASSWORD -e STREAMING_PASSWORD=$STREAMING_PASSWORD -e PRIMARY_NODE=pg-repmgr-1 -d postgres-barman
7171

72-
sleep 60
72+
sleep 30
73+
74+
docker exec -it pg-barman-1 barman backup all
75+
76+
docker exec -it pg-barman-1 barman cron
77+
7378
docker exec -it pg-barman-1 barman check pg-repmgr-1
79+
`Server pg-repmgr-1:
80+
PostgreSQL: OK
81+
is_superuser: OK
82+
PostgreSQL streaming: OK
83+
wal_level: OK
84+
replication slot: OK
85+
directories: OK
86+
retention policy settings: OK
87+
backup maximum age: OK (interval provided: 7 days, latest backup age: 2 minutes, 21 seconds)
88+
compression settings: OK
89+
failed backups: OK (there are 0 failed backups)
90+
minimum redundancy requirements: OK (have 1 backups, expected at least 1)
91+
ssh: OK (PostgreSQL server)
92+
not in recovery: OK
93+
pg_receivexlog: OK
94+
pg_receivexlog compatible: OK
95+
receive-wal running: OK
96+
archiver errors: OK`
97+
7498

7599
### FORCE FAILOVER
76100
[ monitor from another shell ] docker logs -f pg-repmgr-2

0 commit comments

Comments
 (0)