Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. Veritas NetBackup™ for MongoDB Administrator's Guide
  3. Restoring or recovering MongoDB data using NetBackup
  4. Recovering a MongoDB database using the command line
  5. Using the command line to recover a MongoDB database
Veritas NetBackup™ for MongoDB Administrator's Guide

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

  1. On the NetBackup master server, log on as an Administrator or root user based on Windows or UNIX system respectively.
  2. 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,

    -C

    Specifies the MongoDB cluster node and port number that you have backed up.

    -D

    Specifies the host name or the FQDN of the backup host.

    -e

    Specifies the end time of the backup window.

    -f

    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.

    -p

    Specifies the backup policy.

    -R

    Specifies the directory path to a rename file.

    -s

    Specifies the start time of the backup window.

    -S

    Specifies the host name or FQDN of the master server.

    -t 44

    Specifies BigData as the policy type.

    -L progress_log

    Specifies the name of whitelisted file path in which to write progress information.

Feedback

Was this page helpful?
Previous

Creating or modifying the rename file

Next

Manual steps after the recovery process

Feedback

Was this page helpful?