如何在早上6点进行基本备份以及如何在postgresql中的晚上8点进行增量备份 [英] how to take base backup in the morning 6AM and how to take incremental backup at 8 PM in postgresql
本文介绍了如何在早上6点进行基本备份以及如何在postgresql中的晚上8点进行增量备份的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试对单个postgres服务器进行每小时热增量备份。
我在postgresql.conf中进行了以下设置:
max_wal_senders = 2
wal_level = archive
archive_mode = on
archive_command ='copy%p c:\\postgres \\archive \\%f'
我用pg_basebackup做了基础备份-U postgres -D .. \ archive -Ft -l 2013-07-07 -x
Trying to do an hourly hot incremental backup of a single postgres server.
I have the following setup in postgresql.conf:
max_wal_senders=2
wal_level=archive
archive_mode=on
archive_command='copy "%p" "c:\\postgres\\archive\\%f"'
I did a base backup with pg_basebackup -U postgres -D ..\archive -Ft -l 2013-07-07 -x
推荐答案
请阅读: -
PostgreSQL:文档:9.1:连续存档和时间点恢复(PITR) [ ^ ]
Please read it :-
PostgreSQL: Documentation: 9.1: Continuous Archiving and Point-in-Time Recovery (PITR)[^]
这篇关于如何在早上6点进行基本备份以及如何在postgresql中的晚上8点进行增量备份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文