Forrest logo
back to the mongodump tool

mongodump:tldr:81b65

mongodump: Create a dump of a given database.
$ mongodump --db ${database_name}
try on your machine

The mongodump command is a MongoDB utility used to create a binary export of a MongoDB database. It creates a backup of the specified database, including all its collections.

In this specific command, --db is an option used to specify the name of the database that needs to be backed up. ${database_name} is a placeholder for the actual name of the database. You need to replace ${database_name} with the name of the database you want to back up.

To use the command, you need to have MongoDB installed and the mongodump utility accessible in your system's command-line interface.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mongodump tool