Veritas NetBackup™ for MongoDB Administrator's Guide
- Overview of protecting MongoDB using NetBackup
- Verify the pre-requisites for the MongoDB plug-in for NetBackup
- Configuring NetBackup for MongoDB
- Configuring backup options for MongoDB using the mongodb.conf file
- Adding MongoDB credentials in NetBackup
- Managing backup hosts
- Backing up MongoDB using NetBackup
- Backing up MongoDB data
- Configuring NetBackup policies for MongoDB plug-in
- Restoring or recovering MongoDB data using NetBackup
- About the restore scenarios for MongoDB database from the BAR interface
- Recovering a MongoDB database using the command line
- Troubleshooting
- Appendix A. Additional information
Creating or modifying the rename file
Create or modify the rename file in the any directory for the following scenarios:
Redirect restore and recover the MongoDB database to an alternate cluster
Redirect restore and recover the MongoDB database to an alternate node, or port, or database path in an existing cluster
If the rename file is not available, then you must create it and save it as rename.txt
on the NetBackup master server.
The MongoDB rename file contains the following fields:
BIGDATA_MONGODB RestoreOnly BIGDATA_MONGODB RecoverOnly BIGDATA_MONGODB PointInTime change /MongoDBnode_hostname1:port1/db1 to /MongoDBnode_hostname2:port2/db2
For restore only:
BIGDATA_MONGODB RestoreOnly YES BIGDATA_MONGODB RecoverOnly NO BIGDATA_MONGODB RecoverPointInTime 0
For recovery in a specific point in time:
BIGDATA_MONGODB RestoreOnly NO BIGDATA_MONGODB RecoverOnly NO BIGDATA_MONGODB RecoverPointInTime 1290571200
For recovery and changing MongoDB node hostname, port, or database path:
BIGDATA_MONGODB RestoreOnly NO BIGDATA_MONGODB RecoverOnly NO BIGDATA_MONGODB RecoverPointInTime 0 change /MongoDBnode_hostname1:port1/db1 to /MongoDBnode_hostname2:port2/db2
Note:
If the application_server (MongoDBnode_hostname1:port1) is different from the target application_server (MongoDBnode_hostname2:port2), the rename entry must contain ALT_APPLICATION_SERVER=MongoDBnode_hostname2:port2.
After making the required changes in the rename file, you can run the bprestore command. For more information, See Using the command line to recover a MongoDB database.