# Performing an Incremental Backup for a MongoDB Cluster

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:

  - Replica Set Oplog

  - Change the Size of the Oplog

- 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 `--config` option 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 `--config` option for YAML file–based input of credentials.

- Perform an IntelliSnap full backup on the MongoDB client for the oplog backup schedule.

## Procedure

1. From the Command Center navigation pane, go to Manage > Plans.

   The Plans page appears.

2. In the Plan name column, click the backup plan associated with the MongoDB cluster.

   The backup plan page appears.

3. 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.

4. From the Backup type list, select Transaction Log, and from the for list, select Databases.

5. Specify the frequency of the backup.

6. Click Save.

## What to Do Next

To disable operation log dump backups, you must set the bEnableMongoOpLogDumps additional setting to 0.

×

Loading...