>_ linuxcommand.dev
Startseite mongorestore
Database

mongorestore

Restores MongoDB data from mongodump backups

Ubuntu CentOS Debian SUSE Fedora RHEL
Verified: 2026-05-13
Syntax
$mongorestore [options] <dump-dir|archive>
Optionen
--db
--drop
--archive
--nsInclude
Examples
$mongorestore --db database /backup/path/database
$mongorestore --drop /backup/path
$mongorestore --archive=backup.archive
Typical use cases
?
Standard usage
mongorestore --help
Note Useful for full restores and selective namespace recovery.
Export