.. Hello Earthling .. \o/ :)
Backup and Restore ALL data in your MongoDB
Wednesday, October 05, 2016
so just avoid all the lengthy explanations on the several back up and restore mongodb documentation pages and follow this (cuz u are in a hurry arntchya):
Assuming your mongod.exe is running on port 27017.
You use the following to take a complete backup:
mongodump.exe --host localhost --port 27017 --out C:\AMD\up
now you have everything backed up in the folder C:\AMD\up.
You use the following to restore the db backup:
mongorestore.exe --port 27017 C:\AMD\up
it takes everything from C:\AMD\up and restores in the db server running on port 27017.
have FUN! :)
Lahore Food Blog