mongo can not backup code example
Example 1: import dump mongodb
mongorestore -d db_name /path/
mongorestore -d db_name -c collection_name /path/file.bson
Example 2: take db backup mongodb
mongodump --out=/data/backup/
mongorestore -d db_name /path/
mongorestore -d db_name -c collection_name /path/file.bson
mongodump --out=/data/backup/