mongodb shell create buckup json code example
Example 1: mongodb export entire database
// EXPORT
mongodump -d -o
// IMPORT
mongorestore -d
Example 2: import dump mongodb
mongorestore -d db_name /path/
mongorestore -d db_name -c collection_name /path/file.bson