Question

adding dumped mongodb database to server

Posted May 30, 2018 1.8k views
MongoDBUbuntu 16.04

Hi,

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.

thanks,

jb

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 :

https://www.digitalocean.com/community/tutorials/how-to-back-up-restore-and-migrate-a-mongodb-database-on-ubuntu-18-04

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

https://www.mongodb.com/try/download/compass

I hope this helps!

Regards,
Rajkishore

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.