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

    XMLWordPrintable

    Details

      Description

      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

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: