Forrest logo
back to context overview

mongorestore

List of commands for mongorestore:

  • mongorestore:tldr:7689d mongorestore: Import a BSON data dump from a directory to a given database in a MongoDB server host, running at a given port, with user authentication (user will be prompted for password).
    $ mongorestore --host ${database_host:port} --db ${database_name} --username ${username} ${path-to-directory} --password
    try on your machine
    explain this command
  • mongorestore:tldr:8c540 mongorestore: Import a BSON data dump from a directory to a MongoDB database.
    $ mongorestore --db ${database_name} ${path-to-directory}
    try on your machine
    explain this command
back to context overview