...
use mongodump and mongorestore for small deployment. They create
and use BSON files to do dump and restore. We followed and succeeded.
On the machine where Tool Catalog is running, do:
mongodump --db tool_catalog -o <path and folder to dump to>
This creates a directory named "dump/" in the current directory, and dumps the
"tool_catalog" database into it.
...
mongod is running. Go to "dump/"'s parent directory, do:
mongorestore --drop --db tool_catalog <path and folder where tool_catalog dump is>
the flag --drop will drop any existing data, --db will tell mongorestore what database to restore
And it will restore it with the current running mongod.
mongo
> show dbs
now shows the "tool_catalog" directory.