Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14140

Fail with error if both --host and --dbpath options are used in server tools

      For example, if I run the following command on HOST1, it will restore the dump to the DBPATH on localhost (HOST1), rather than HOST2. It would be nice if it would print error/warning if both --host and --dbpath options are used in mongorestore since it won't be able to restore the dump to the DBPATH on HOST2.

      mongorestore  --host HOST2 --dbpath DBPATH DUMP
      

            Assignee:
            sverch Shaun Verch
            Reporter:
            linda.qin@mongodb.com Linda Qin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: