-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: 3.2.0
-
Component/s: Tools
-
None
-
ALL
-
Original summary
mongorestore --db option not working as documented
Description
The documentation for mongorestore dictates that you use --db to specify which database to restore data into. However, if you ie. use mongodump --db=A and then mongorestore --db=B to restore, nothing will be created. You have to specify the same database name as used in the dump.