Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 370 Bytes

mongo-dump-database.md

File metadata and controls

10 lines (6 loc) · 370 Bytes

Dump database from MongoDB

mongodump --db={{DB_NAME}} --out={{DESTINATION_DIRECTORY}}

  • DB_NAME: Database's name.
  • DESTINATION_DIRECTORY: Directory to save the output files. However, it is an optional parameter. By default, the command saves the registers in the current path.

Example:

mongodump --db=ak-cli --out=/arshad/ak-cli/db/dump