mongodump --db={{DB_NAME}} --collection={{COLLECTION_NAME}} --out={{DESTINATION_DIRECTORY}}
- DB_NAME: DB to get backup from
- COLLECTION_NAME: Collection which needs to be dumped in destination directory
- DESTINATION_DIRECTORY: Directory/path where to dump the backup collection
mongodump --db=ak-cli --collection=cli_commands --out=/arshad/ak-cli/db/dump