Comments on: Percona Backup for MongoDB v1.2 Released https://www.percona.com/blog/percona-backup-for-mongodb-v1-2-released/ Mon, 18 Jan 2021 05:40:38 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Akira Kurogane https://www.percona.com/blog/percona-backup-for-mongodb-v1-2-released/#comment-10972954 Mon, 18 Jan 2021 05:40:38 +0000 https://www.percona.com/blog/?p=68595#comment-10972954 In reply to Aayushi Mangal.

Hi Aaayushi!

The incremental backup interval is 10 mins, yes. As of the current version (1.4.0) the variable in question is “PITRdefaultSpan” and it isn’t configurable yet. (https://github.com/percona/percona-backup-mongodb/blob/11598d05c6562183b46d7e8a81fb741ce78ebc96/pbm/pitr.go#L20)

This period is how long the automatic process to fetch and store oplog slices waits before making the next oplog slice. Or as another way of saying it, every day 24 * 6 = 144 oplog slices are made.

> like incremental everyday and fulllbackup once in a week?

Oh, yes, you can do this. There is no internal scheduler for the snapshots (the full backups); you must still launch those by making a “pbm backup” (full snapshot) request from outside of PBM. If you A) run “pbm backup” once a week and B) enable PITR the oplog slices between each weekly backup will continue to be collected.

So it is perfectly possible to have weekly full backups and only have oplog capture for PITR inbetween. If you have a large size of data (say a TB or more) but low writes (say 10’s of GB) per day this is a suitable decision i.m.o.

Just for the curious: There is already feature request to add an internal scheduler for full backups: https://jira.percona.com/browse/PBM-530.

]]>
By: Aayushi Mangal https://www.percona.com/blog/percona-backup-for-mongodb-v1-2-released/#comment-10972953 Sun, 17 Jan 2021 17:20:39 +0000 https://www.percona.com/blog/?p=68595#comment-10972953 Hi Akira, thanks for nice article. For PBM incremental backup its default interval is 10min, can we set it as per requirement like incremental everyday and fulllbackup once in a week?

]]>