The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

ONTAP Recipes

ONTAP Recipes: Easily restore a MongoDB Database using MongoDB Ops Manager


ONTAP Recipes: Did you know you can…?


Easily restore a MongoDB Database using MongoDB Ops Manager


MongoDB and NetApp have worked together to integrate the MongoDB Ops Manager utility with NetApp’s AltaVault Virtual Appliance (AVA), for MongoDB backups.


Restore operations are performed entirely within the Ops Manager framework. The steps for restoring MongoDB data from an Ops Manager backup are listed below:


1. Open a browser session and enter the fully qualified URL and port number of the Ops Manager Application.


In the example URL below, “” is the fully qualified hostname of the Ops Manager host, and “8080” is the Ops Manager port:


An IP address can be used in place of the hostname.


2. Enter the required credentials on the home page.


3. Click the “Admin” link at the top of the screen.


4. Click the “Backup” tab on the left side of the screen and you’ll be directed to the “Backup” screen.


5. Select either “Sharded Cluster Status” or “Replica Set Status”. For this example, we’ll be restoring a replica set.


6. Click the name of the sharded cluster to restore.


7. Click the “RESTORE” button that corresponds to the desired snapshot (Figure 1).




Figure 1: Screen for restoring MongoDB from a backup


The “Select Restore Destination” screen will appear (Figure 2).


8. Choose the “PUSH VIA SECURE COPY” option at the top and populate the required fields.


In this example, a tar file containing the backup files will be pushed out the MongoDB primary replica server, which has an IP address of, using scp.  The copy will be performed using the target server’s root user credentials, and the destination folder is “/mongodb/data”.  Click on the green “FINALIZE REQUEST” button at the bottom to start the process.




Figure 2: Select Restore Destination


9. Log in to the destination server, locate the tar file and unbundle it using Linux command


  tar xvf


10. Use the Linux “cd” command to move into the new directory, and verify that the owner and group are “mongod”.


 If not, use the “chown -R” command to change them


11. As the root user, execute the following command to start a new MongoDB instance running under a port that is different from the original production instance:


sudo -u mongod mongod -–dbpath /mongodb/data/ntap1bkp -–directoryperdb –-port 27018


In this example, port 27018 was used.  The directory containing the unbundled restore files is /mongodb/data/ntap1bkp


12. As the root user, connect to the new instance using the command:


mongo -–port 27018


13. Use the MongoDB commands “show dbs” and “show collections” to verify that the restore was successful and complete. Other queries may be used for a more rigorous check of the new instance.


14. The new instance can be promoted to production, or used for restoring individual databases or collections to the original production instance.



For more information, see the ONTAP 9 documentation center


For more information on how to retrieve a Snapshot with SCP delivery, refer to the following document:



Thanks for sharing this information.

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner