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
- 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
Specifies the MongoDB cluster node and port number that you have backed up.
Specifies the host name or the FQDN of the backup host.
Specifies the end time of the backup window.
Specifies 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.
Specifies the backup policy.
Specifies the directory path to a rename file.
Specifies the start time of the backup window.
Specifies the host name or FQDN of the master server.
Specifies BigData as the policy type.
Specifies the name of whitelisted file path in which to write progress information.