Details
-
Improvement
-
Resolution: Won't Do
-
Major - P3
-
None
-
None
Description
Description
A common workflow is to `mongodump` a production database, and then restore it to another logical database name (like 'db_dev') each morning to test on almost live data.
I suggest we add a simple example for restoring to a different database name, perhaps restructuring the current "Change Collections’ Namespaces during Restore" section.
It could be a new subsection "Change Database name during Restore" with an example like:
 mongorestore --nsInclude 'db_prd.*' --nsFrom 'db_prd.$coll$' --nsTo 'db_dev.$coll$'
|