Hi feel like this question has an easy answer but I just can't see it. I am using the command
Mongodump --db <name>
and i get
'mongodump' is not recognized as an internal or external command,
operable program or batch file
. how can i get a backup of my mongodb thanks
Starting with MongoDB 4.4, the MongoDB Database Tools are now released separately from the MongoDB Server and use their own versioning, with an initial version of 100.0.0. Previously, these tools were released alongside the MongoDB Server and used matching versioning.
https://www.mongodb.com/try/download/database-tools?tck=docs_databasetools
Once database tools contents are put into the bin, set the path and restart your PC.
You need to run set path
command first, if you have installed mongodb.
set path="<mongodb installed directory which contain mongodump file>"
If you don't want to set path every time you open command prompt. then, set the path in environment variables if you are using windows.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With