Restore MongoDB
high risk
mongorestore --dryRun <dir>Dry runRestores BSON dumps. See the flags and examples below, and run `man mongorestore` for the full reference.
| Flag | Meaning |
|---|---|
--drop --drop | Drop collections before restore⚠ Deletes existing data. |
mongorestore --uri mongodb://host backup/Restore · explain & risk-check →Reference text is hand-written and may be incomplete — check man mongorestore for your version. Test destructive commands on a non-production system first.