Backup is always survival of any DBA either SQL or noSQL. My Last post was how to configure mongod process. Today i will backup and restore a mongodb database (also called namespace) from command prompt.
To take Backup execute command from \mongodb\bin\ directory
Mongodump --db <database name>
mongodump --db youngDBA
List of associated backup files will generate we can varify from DUMP folder .. Now just for eg if I accidentally droped database from Robomongo (a mongoDB GUI tool) and i have to restore then execute command from mongodb\Bin\
mongorestore <Source path>
This is very easy step like mySQL.