2017-03-04 105 views
1

我正在尝试配置Barman进行备份。当我做一个barman check replica我不断收到:WAL存档:失败(请确保WAL运输已设置)

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 

我使用PostgreSQL 9.6和2.1酒保;我不确定这个问题有人可以帮忙吗? 这里是我的酒保服务器配置:

description = "Database backup" 
conninfo = host=<db-ip> user=postgres dbname=db 
backup_method = rsync 
ssh_command = ssh [email protected]<db-ip> 
archiver = on 

回答

5

barman check试图确认存档被断言,实际上有什么东西在档案中正确设置。但是,WAL段通常只会在填满后才存档,如果您的服务器空闲,这种情况永远不会发生。

要解决此问题,巴曼提供了一个命令来强制分段开关,等待完成的WAL展现出来,然后立即将其归档:

barman switch-xlog --force --archive replica