The MongoDB documentation on backup at http://docs.mongodb.org/manual/tutorial/backup-with-mongodump/
(http://docs.mongodb.org/manual/core/backups/) tells that we can
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
This created a directory named "dump/" in the current directory, and dumped the
"tool_catalog" db into it.
To restore, copy the "dump/" directory to the target machine. On it, first make sure that
mongod is running, then go to "dump/"'s
parent directory, then do:
mongorestore dump
And it will restore it into the current running mongod database.
mongo
> show dbs
now shows the "tool_catalog" directory.