Mongodump usage

The docs say: Run mongodump from the system command line, not the mongo shell.

This image is a screenshot I took of the bottom part of my MongoDB Compass:


So, not from here but from the system command line, which means simply opening a terminal command line; right?

Should it be done in the root directory of the project or somewhere else?

I am asking because I have a project that uses Angular and Django and MongoDB.

So, I would like to know where exactly I should run this command?

Thanks in advance,

Yes run from terminal command line(os prompt)
You can run from any dir convenient to you.It will create backups in a folder called dump under the dir you ran the command

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.