我正在尝试配置 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
我正在使用 Postgresql 9.6 和 barman 2.1;我不确定问题是什么有人可以帮忙吗?
这是我的酒保服务器配置:
description = "Database backup"
conninfo = host=<db-ip> user=postgres dbname=db
backup_method = rsync
ssh_command = ssh postgres@<db-ip>
archiver = on
barman check
尝试通过断言存档中确实有某些内容来确认存档设置正确。然而,WAL 段通常只有在填满后才会被归档,如果你的服务器空闲,这种情况永远不会发生。
为了解决这个问题,Barman 提供了一个命令来强制进行分段切换,等待完成的 WAL 显示,然后立即将其存档:
barman switch-xlog --force --archive replica
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)