6.1 Architecture와 server 설정
Barman은 별도 backup server에서 여러 PostgreSQL server의 backup, WAL, retention, recovery를 관리합니다. Database host와 backup host의 권한과 network failure domain을 분리할 수 있습니다.
[app]
description = "Application PostgreSQL"
conninfo = host=db.internal user=barman dbname=postgres
streaming_conninfo = host=db.internal user=streaming_barman dbname=postgres
backup_method = postgres
streaming_archiver = on
slot_name = barman
create_slot = auto
retention_policy = RECOVERY WINDOW OF 14 DAYS
정확한 option은 설치한 Barman release 문서를 확인합니다. barman show-server app과 barman check app으로 합성된 설정과 prerequisite를 검사합니다.
신뢰 경계
- Barman host는 production data를 읽고 보존합니다.
- PostgreSQL monitoring role과 streaming role을 최소 권한으로 분리합니다.
- SSH 또는 network path의 host key와 TLS를 검증합니다.
- Backup operator와 repository administrator 권한을 분리합니다.
여러 server를 중앙화하면 운영은 단순해지지만 backup host 장애의 영향이 커집니다. Repository replication과 Barman metadata 복구 절차도 필요합니다.