Mongo DB basic commands for backup, restore, import…
mongorestore.exe –host localhost:3001 –drop -d meteor C:\DumpFolder\
mongoimport –host localhost:3001 –db DB_NAME –collection COLLECTION_NAME –drop –file C:\FILE.json
mongodump.exe –host localhost:3001 -d DB_NAME -o C:\DumpFolder\
show dbs – lists all the databases on that machine
use dbName – connects to the respective database
db.getCollectionNames()
db.users.find().pretty()
db.users.find().count()