參考文檔:
- http://docs.pgbarman.org/release/2.5/
- EPEL:https://fedoraproject.org/wiki/EPEL
系統要求
- Python 2.6或2.7
- Python模塊:
- argcomplete
- argh> = 0.21.2 <= 0.26.2
- argparse(僅限Python 2.6)
- psycopg2> = 2.4.2
- python-dateutil <> 2.0
- setuptools的
- PostgreSQL> = 8.3
- rsync> = 3.0.4(PostgreSQL可選> = 9.2)
環境
數據庫服務器
- IP:192.168.220.133
- 系統:Centos7.4
- Postgres版本:10.4
備份服務器
- IP:192.168.220.139
- 系統:Centos7.4
安裝
安裝依賴
需要安裝Extra Packages Enterprise Linux(EPEL)存儲庫和PostgreSQL全局開發組RPM存儲庫。
# EPEL存儲庫
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# 安裝PostgreSQLRPM存儲庫
yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
# 安裝postgresql10 客戶端
yum install postgresql10
安裝Barman
yum install barman