MongoDB – How to export and import data
Exporting a database This exports a database with all its collections and documents to a dump folder. All collections will be dumped in an equally named folder in the ./dump folder. Importing a database This imports a previously exported database with all its collections and documents.