mongorestore from dump 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/
Example 3: mongo restore collections
mongorestore --port 27017 --db restoredTest /mydata/restoredata/test --drop
Example 4: take db backup mongodb
mongodump --host=mongodb1.example.net --port=3017 --username=user --password="pass" --out=/opt/backup/mongodump-2013-10-24