Backup

mongodump -d <database_name> -o <directory_backup>

 

Restore

mongorestore -d <database_name> <directory_backup>