恢复 Postgresql pgBarman

问题描述

我已经设置了一个 postgresql 数据库,我想备份它。

我有 1 台服务器和 Barman 的主数据库和 1 台。 所有设置都在工作,我可以用酒保备份我的数据库

我只是不明白如何在我每天进行的备份之间的确切时间点恢复我的数据库

barman@ubuntu:~$ barman check main-db-server
WARNING: No backup strategy set for server 'main-db-server' (using default 'exclusive_backup').
WARNING: The default backup strategy will change to 'concurrent_backup' in the future. Explicitly set 'backup_options' to silence this warning.
Server main-db-server:
        Postgresql: OK
        is_superuser: OK
        wal_level: OK
        directories: OK
        retention policy settings: OK
        backup maximum age: OK (interval provided: 1 day,latest backup age: 9 minutes,59 seconds)
        compression settings: OK
        Failed backups: OK (there are 0 Failed backups)
        minimum redundancy requirements: OK (have 6 backups,expected at least 0)
        ssh: OK (Postgresql server)
        not in recovery: OK
        systemid coherence: OK (no system Id available)
        archive_mode: OK
        archive_command: OK
        continuous archiving: OK
        archiver errors: OK

当我备份数据库

barman@ubuntu:~$ barman backup main-db-server
WARNING: No backup strategy set for server 'main-db-server' (using default 'exclusive_backup').
WARNING: The default backup strategy will change to 'concurrent_backup' in the future. Explicitly set 'backup_options' to silence this warning.
Starting backup using rsync-exclusive method for server main-db-server in /var/lib/barman/main-db-server/base/20210427T150505
Backup start at LSN: 0/1C000028 (00000005000000000000001C,00000028)
Starting backup copy via rsync/SSH for 20210427T150505
copy done (time: 2 seconds)
Asking Postgresql server to finalize the backup.
Backup size: 74.0 MiB. Actual size on disk: 34.9 KiB (-99.95% deduplication ratio).
Backup end at LSN: 0/1C0000C0 (00000005000000000000001C,000000C0)
Backup completed (start time: 2021-04-27 15:05:05.289717,elapsed time: 11 seconds)
Processing xlog segments from file archival for main-db-server
        00000005000000000000001B
        00000005000000000000001C
        00000005000000000000001C.00000028.backup

我不知道如何在两次备份之间的时间内恢复我的数据库:/

谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)