adding dumped mongodb database to server

Posted May 30, 2018 1.8k views
MongoDBUbuntu 16.04


I am trying to migrate my mongodb database to my server. I have reviewed all the mongorestore docs and cannot seem to figure this out. I have dumped the db on my local machine(mac) and have tried SCP transfer and mongorestore which both failed. If anyone has a good example of how to do this it would be much appreciated.



These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @Pappie,

The below article can guide you with mongodump and mongorestore :

you could also try using MongoDB compass to perform a dump and restore from GUI.

I hope this helps!


by Toli
MongoDB is one of the most popular NoSQL database engines. It is famous for being scalable, powerful, reliable and easy to use. In this article we'll show you how to back up, restore, and migrate your MongoDB databases.