WAL 存档:失败(请确保 WAL 运输已设置)

Dee*_*aya 6 postgresql barman postgresql-9.6

我正在尝试将 Barman 配置为备份。当我做一个barman check replica我不断得到:

Server replica:
WAL archive: FAILED (please make sure WAL shipping is setup)
PostgreSQL: OK
superuser: OK
wal_level: OK
directories: OK
retention policy settings: OK
backup maximum age: FAILED (interval provided: 1 day, latest backup age: No available backups)
compression settings: OK
failed backups: OK (there are 0 failed backups)
minimum redundancy requirements: FAILED (have 0 backups, expected at least 2)
ssh: OK (PostgreSQL server)
not in recovery: FAILED (cannot perform exclusive backup on a standby)
archive_mode: OK
archive_command: OK
continuous archiving: OK
archiver errors: OK
Run Code Online (Sandbox Code Playgroud)

我使用的是 Postgresql 9.6 和 barman 2.1;我不确定问题是什么,有人可以帮忙吗?这是我的 Barman 服务器配置:

description = "Database backup"
conninfo = host=<db-ip> user=postgres dbname=db
backup_method = rsync
ssh_command = ssh postgres@<db-ip>
archiver = on
Run Code Online (Sandbox Code Playgroud)

Kas*_*dry 13

当遇到这样的错误时,请务必barman switch-xlog --force --archive <server_name>按照酒保文档中的说明运行以验证 WAL 归档过程。