MongoDB

Create dump of database using date for the folder name

sudo mongodump --db [DB NAME] --out /var/backups/mongobackups/`date +"%Y%m%d"`

 

Restore database from dump

sudo mongorestore /var/backups/mongobackups/[BACKUP FOLDER NAME]
Sponsored by