Backup a mongo database
![Backup a mongo database](https://res.cloudinary.com/audiodog/image/upload/w_640,h_155,c_scale,f_auto,q_auto/v1513806711/images/site/blog_banner_light.png)
Mongodb - awesome!
As few general admin tasks like backing up a full database:
# Creates a directory called 'dump' in the current directory containing the specified collection mongodump -d mydb -c mycollection
and restoring from a backup:
mongorestore --drop --db mydb --collection mycollection /home/myhome/mongo.bson