Импорт данных в MongoDB
mongoimport --jsonArray --db YourDatabase --collection YourCollection --file Yourfile.json
Brainy Booby
mongoimport --jsonArray --db YourDatabase --collection YourCollection --file Yourfile.json
1) mongodump (export)
all database
$ mongodump
single database
$ mongodump -d databaseName
single collection
$ mongodump -d databasename -c collectionName
2) mongorestore (import)
mongorestore -d databaseName /path/
mongorestore -d databaseName -c collectionName