0

I have taken a dump from Ubuntu v20 server using mongodump. I need to use it on my Windows laptop.

In my Windows laptop,

a. from which directory should I execute the mongorestore command?

b. where should the dump folder be saved?

When I try to execute the mongorestore command from my projects directory in windows, it does not recognize the command.

I also tried to do the same from C:\Program Files\MongoDB\Server\5.0\bin, but got the same error.

ERROR: <mongorestore : The term 'mongorestore' is not recognized as the name of a cmdlet, 
function, script file, or operable program. Check the spelling of the name, or if a path was 
included, verify that the path is correct and try again.>
3
  • 1
    FYI this is off-topic here. Possibly fitting for Database Administrators (just read the guidelines there first). As for not finding mongorestore - this seems like more of an installation or general usage issue (and you’ve shown no details except for error output) Oct 15, 2023 at 13:26
  • 1
    Have you installed the MongoDB Database Tools on your Windows machine?
    – rickhg12hs
    Oct 15, 2023 at 13:59
  • 1
    Yeah, DB Tools were not installed. Now its working fine.
    – hemant
    Oct 15, 2023 at 15:55

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.