You can perform an incremental backup for a MongoDB cluster.
Note
-
If an incremental backup fails for any reason like role change, then the Commvault converts the log backup to a full snapshot backup automatically. The discovery operation will be run as part of full snapshot.
-
To disable the default behavior of converting an incremental log backup to a full backup, you must configure the bMongoDbConvertToFullOnLogBkpFailure. For instructions on adding the additional setting from the CommCell Console, see Adding or Modifying Additional Settings from the CommCell Console.
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:
-
Verify that the mongodump and mongorestore binaries are placed in the MongoDB bin path that you specified during instance creation.
-
Perform an IntelliSnap full backup on the MongoDB client for the oplog backup schedule.
Procedure
-
From the CommCell Browser, expand Policies.
-
Right-click Schedule Policies, and then click New Schedule Policy.
The New Schedule Policy dialog box appears.
-
In the Name box, type a name for the schedule policy.
-
From the Type list, select Data Protection.
-
From the Agent Type list, select Big Data Apps.
-
In the Description box, type an appropriate description.
-
Click Add.
The Backup Task Options dialog box appears.
-
To configure the backup options, complete the following steps:
-
On the Backup Options tab, click Incremental.
-
Select the Log check box.
-
-
To configure the scheduling options, complete the following steps:
-
On the Schedule Pattern tab, in the Schedule Name box, type a name.
-
In the Job Interval area, do the following:
-
Backup on file activity every: Specify the time interval for oplog backups.
-
Force a backup every: Specify the time interval to backup the dumps to media.
-
-
To specify the number of oplog dump files after which you want to take incremental backups, on the Databases tab, select the Number of Archived Logs in Log Destination check box, and then specify the number.
For more information about configuring threshold parameters for automatic schedules, see Creating an Automatic Schedule for Database Log Backups.
-
-
Click OK.
-
From the New Schedule Policy dialog box, click the Associations tab, and then expand the client computer to the specific subclient to associate with the schedule policy.
-
Click OK.
What to Do Next
To disable oplog dump backups, you must set the bEnableMongoOpLogDumps additional setting to 0.