Application-Consistent Protection for MongoDB on Kubernetes

You can add a pre-process script file or a post-process script file for MongoDB on the Kubernetes access nodes.

Example Pre-Process Script

The following example is a pre-process script for MongoDB.

#!/bin/bash
mongo --eval 'db.fsyncLock();'
exit

Example Post-Process Script

The following example is a post-process script for MongoDB.

#!/bin/bash
mongo --eval 'db.fsyncUnlock();'
exit

Output and Log Files

Commvault does not log the return codes of MongoDB pre- and post-scripts. To confirm that the pre/post execution commands are executed, inspect your MongoDB log file:/var/log/mongodb/mongodb.log.

Caution

Backup jobs depend on the return codes of pre- and post-scripts. Any return code value other than 0 fails backup jobs.

Loading...