Dump a database mongodb

Dump all collections in a database to BSON files

mongodump --uri='mongodb://localhost:27017' --db=mydb --out=/backup/$(date +%F)
more mongodb all 20 commands →