You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

  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 creates a directory named "dump/" in the current directory, and dumps the
  "tool_catalog" database into it.

  To restore, copy the "dump/" directory to the target machine. On it, make sure that

   mongod is running. Go to "dump/"'s parent directory, do:
      mongorestore dump
  And it will restore it with the current running mongod.
      mongo
   > show dbs
  now shows the "tool_catalog" directory.

  • No labels