>_ linuxcommand.dev
Startseite mongorestore
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
Typische Anwendungsfälle
?
Standardverwendung
mongorestore --help
Hinweis Nützlich für vollständige Restores und selektive Wiederherstellung einzelner Namespaces.
Export