Database
mongorestore
Stellt MongoDB-Daten aus mongodump-Backups wieder her
Ubuntu
CentOS
Debian
SUSE
Fedora
RHEL
Verifiziert: 2026-05-13
Syntax
$mongorestore [options] <dump-dir|archive>
Optionen
--db
--drop
--archive
--nsInclude
Beispiele
$mongorestore --db database /backup/path/database
$mongorestore --drop /backup/path
$mongorestore --archive=backup.archive
Siehe auch
Typische Anwendungsfälle
?
Standardverwendung
mongorestore --help
Hinweis
Nützlich für vollständige Restores und selektive Wiederherstellung einzelner Namespaces.
Export