Anvil
Anvil

Reputation: 1865

Export and import MongoDB

I would like to export one Mongo database to another.

But when I run:
mongodump -h ds1sdf4.mlab.com:57064 -d heroku_randomkey -u myuser -p mypassword -o volumes/testdump/mongodb1
Terminal tells me: -bash: mongodump: command not found

Am I doing this all wrong?

Upvotes: 0

Views: 120

Answers (1)

RisingSun
RisingSun

Reputation: 1733

You need to install mongo on your system. mongodump is a part of that package. do brew install mongo and try your command again. If you do not have Brew, I suggest you install it from here.

Upvotes: 1

Related Questions