MongoDB 8 · Backup and administration

Restore a dump

Restore a dump into a server.

mongorestore --uri="mongodb://localhost:27017" backup/

Caution: Restoring can overwrite documents with the same _id. Use --drop only when you mean to replace existing collections.

Official MongoDB 8 documentation

More backup and administration commands

All backup and administration commands · MongoDB 8 cheatsheet

Was this page helpful?