I had an install of MongoDB that was using on OSX that was using ~/data/db
. I had a crash and re-installed MongoDB using Homebrew and it set up the new db path at ~/usr/local/var/mongodb
.
All of my apps are working (default port 27017), but when I try to run mongodump
it backs up the db in ~/data/db
which is now out of date.
How can I get mongodump
to reference the correct db folder?