Veritas NetBackup for MongoDB Administrator's Guide
- Overview of protecting MongoDB using NetBackup
- Installing and deploying MongoDB plug-in for NetBackup
- Deploying the MongoDB plug-in
- Operating system and platform compatibility
- Downloading the plug-in
- Installing the MongoDB plug-in and the required EEBs
- Prerequisites and the best practices for deploying the MongoDB plug-in
- Post installation procedures
- Verifying the installation of the MongoDB plug-in
- Configuring NetBackup for MongoDB
- About the MongoDB configuration tool
- Prerequisites for manually creating the mongodb.conf file
- Configuring backup options for MongoDB using the mongodb.conf file
- Obtaining the RSA key of the MongoDB nodes
- Adding MongoDB credentials in NetBackup
- Using a non-root user as a host user
- Managing backup hosts
- Backing up MongoDB using NetBackup
- Backing up MongoDB data
- Prerequisites for backing up a MongoDB cluster
- Configuring NetBackup policies for MongoDB plug-in
- Creating a BigData backup policy
- Creating BigData policy using the NetBackup Administration Console
- Using the Policy Configuration Wizard to create a BigData policy for MongoDB clusters
- Using the NetBackup Policies utility to create a BigData policy for MongoDB clusters
- Using NetBackup Command Line Interface (CLI) to create a BigData policy for MongoDB clusters
- Restoring or recovering MongoDB data using NetBackup
- Restoring MongoDB data
- Prerequisites for MongoDB restore and recovery
- About the restore scenarios for MongoDB database from the BAR interface
- Using the BAR interface to restore the MongoDB data on the same cluster
- Using the BAR interface to restore the MongoDB data on an alternate cluster
- About restoring MongoDB data in a high availability setup on an alternate client
- Recovering a MongoDB database using the command line
- Manual steps after the recovery process
- Troubleshooting
- Appendix A. Additional information
Using the command line to recover a MongoDB database
You can use the bprestore command to recover a backed-up MongoDB instance.
For more information about the bprestore command, refer to the NetBackup Commands Reference Guide.
To recover a MongoDB database
- On the NetBackup master server, log on as an Administrator or root user based on Windows or UNIX system respectively.
- Run the following command on the NetBackup master server by providing appropriate values:
bprestore -R /usr/openv/tmp/rename.txt -C MongoDBnode-port -s starttime -e endtime -D backup_host -S master_server -L path_progress_log -t 44 -p policyname -f /usr/openv/tmp/filelist.txt
Where,
-CSpecifies the MongoDB cluster node and port number that you have backed up.
-DSpecifies the host name or the FQDN of the backup host.
-eSpecifies the end time of the backup window.
-fSpecifies a file (listfile) that contains a list of files to be restored and can be used instead of the file names option (filenames). In listfile, list each file path must be on a separate line.
For MongoDB, the file list must contain <MongoDBnode_hostname>:<port> of all the MongoDB nodes.
-pSpecifies the backup policy.
-RSpecifies the directory path to a rename file.
-sSpecifies the start time of the backup window.
-SSpecifies the host name or FQDN of the master server.
-t 44Specifies BigData as the policy type.
-L progress_logSpecifies the name of whitelisted file path in which to write progress information.