Coders for Causes BlogAbout

Export MongoDB

December 30, 2018

./mongodump --uri <db_uri>

./mongorestore --uri <db_uri> <path_to_exported_db>

This technique doesn’t work too well with mongo atlas. Instead mongoDB compass can be used to import and export the data. There you will have to export each collection one by one. and import it one by one.


David Yu

Written by David Yu who loves to build things in code.You should checkout our facebook for latest events and news