Answers for "mongodb export all collections to csv"

6

mongodb export entire database

// EXPORT
mongodump -d <database_name> -o <directory_backup>
// IMPORT
mongorestore -d <database_name> <directory_backup>
Posted by: Guest on May-26-2020
0

how to export mongodb database to json

sudo mongoexport --db newdb -c restaurants --out newdbexport.json
Posted by: Guest on August-09-2020

Code answers related to "mongodb export all collections to csv"

Browse Popular Code Answers by Language