You can perform an incremental backup for a MongoDB cluster. Incremental backups back up the MongoDB oplog dumps that are collected at specific intervals. By default, the Commvault software collects oplog dumps every 15 minutes and triggers an incremental back up every four hours.
Note
-
If an incremental backup fails due to a role change or oplog rollover, then the Commvault software automatically converts the log backup to a full snapshot backup. The discovery operation runs as part of the full snapshot.
-
To disable the default behavior of converting an incremental log backup to a full backup, you must configure the bMongoDbConvertToFullOnLogBkpFailure. For more information on configuring an additional setting, see Adding a Setting for Servers and Server Groups.
-
Single node replica sets in a sharded cluster configuration do not support incremental backups. You must disable Oplog backups. To disable operation log dump backups, you must set the bEnableMongoOpLogDumps to 0.
Before You Begin
-
Set the oplog size to an optimal value so that the transactions are not overwritten before they are backed up by the scheduled oplog dump backups. For more information about setting the oplog size, see MongoDB documentation:
-
The mongodump and mongorestore binaries must be present in the MongoDB bin path specified during instance creation.
-
The mongodump and mongorestore database tools must be version 100.3.0 or later. The
--configoption used for YAML file–based input of credentials is available only in these versions.For Percona Server for MongoDB environments, the mongodump and mongorestore tools in use must support
--configoption for YAML file–based input of credentials. -
Perform an IntelliSnap full backup on the MongoDB client for the oplog backup schedule.
Procedure
-
From the navigation pane, go to Manage > Plans.
The Plans page appears.
-
In the Plan name column, click the backup plan associated with the MongoDB cluster.
The backup plan page appears.
-
On the Overview tab, under RPO next to Backup frequency, click Add.
The Add backup frequency dialog box appears.
To modify an existing backup frequency, click the backup frequency. In the Edit backup frequency dialog box, modify the backup type and the frequency for backups.
-
From the Backup type list, select Transaction Log, and from the for list, select Databases.
-
Specify the frequency of the backup.
-
Click Save.
What to Do Next
To disable operation log dump backups, you must set the bEnableMongoOpLogDumps additional setting to 0.