【问题标题】:Barman backup: Backup failed issuing start backup command酒保备份:备份失败,发出启动备份命令
【发布时间】:2018-07-22 06:14:10
【问题描述】:

我已经开始考虑使用 barman 来执行我的数据库备份,但是我遇到了以下错误:

酒保备份主服务器

此命令给出以下结果:

错误:无法启动备份。查看日志以获取更多详细信息,或运行“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.wal_achriver 信息:从主服务器的文件存档中找不到 xlog 段。

【问题讨论】:

    标签: postgresql backup barman


    【解决方案1】:

    首先你必须激活wal接收:

    barman receive-wal --create-slot main-server
    

    那么,根据你使用的酒保版本,以下可以解决你的问题:

    酒保版本

    barman switch-xlog --force --archive main-server
    

    酒保版本 > 2.1

    barman switch-wal --force --archive main-server
    

    【讨论】:

    • 只有在使用流媒体时才适用
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-31
    • 1970-01-01
    • 1970-01-01
    • 2017-11-01
    • 2020-11-11
    • 1970-01-01
    相关资源
    最近更新 更多