mongodb export restore

Export the db with the command below:

mongodump -d <database_name> -o <directory_backup>

 

Restore or import the db with the command below

mongorestore -d <database_name> <directory_backup>

 

Posted on: Sunday 25 March 2018