Hi friends,
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
Syntax
Mongodump --db <database name>
eg.
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>
mongorestore <E:\\mongodb\dump\user>
This is very easy step like mySQL.
Thanks
https://www.facebook.com/pages/Sql-DBAcoin/523110684456757
Comments
Post a Comment
Plz dont forget to like Facebook Page..
https://www.facebook.com/pages/Sql-DBAcoin/523110684456757