我已经开始研究如何使用barman来执行数据库备份,但是遇到了以下错误:
酒保备份主服务器
此命令提供以下结果:
错误:无法启动备份。查看日志以获得更多详细信息,或运行“酒保检查主服务器”。
当我跑时:
酒保检查主服务器
我得到以下信息:
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段。
发布于 2018-10-17 13:36:21
首先,您必须激活wal接收:
barman receive-wal --create-slot main-server然后,在您使用的barman版本的功能中,以下内容可以解决您的问题:
酒保版本< 2.2
barman switch-xlog --force --archive main-server酒保版本> 2.1
barman switch-wal --force --archive main-serverhttps://stackoverflow.com/questions/48740322
复制相似问题