Writes one BSON file per collection plus metadata JSON (indexes) into ./backup/mydb. Restore with mongorestore. Add --gzip to compress the files. Related: mongodump --archive for a single file.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.