我已经开始考虑使用barman来执行我的数据库备份,但是我遇到了以下错误:
barman backup main-server
此命令给出以下结果:
错误:无法启动备份。查看日志以获取更多详细信息,或运行“barman check main-server”
然后我跑:
barman check main-server
我得到以下内容:
Server main-server:
WAL archive: FAILED (please make sure WAL shipping is setup)
PostgreSQL: OK
is_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: FAILED (there are 4 failed backups)
minimum redundancy requirements: OK (have 0 backups, expected at least 0)
ssh: OK (PostgreSQL server)
not in recovery: OK
archive_mode: OK
archive_command: OK
continuous archiving: FAILED
archiver errors: OK
非常感谢任何帮助
编辑:从调用barman备份主服务器记录信息:
barman.wal_achriver信息:没有从主服务器的文件存档中找到xlog段。
答案 0 :(得分:0)
首先,您必须激活wal接收:
barman receive-wal --create-slot main-server
然后,在您使用的男服务员版本的功能中,以下可以解决您的问题:
酒保版<2.2
barman switch-xlog --force --archive main-server
酒保版> 2.1
barman switch-wal --force --archive main-server