[SERVER-14140] Fail with error if both --host and --dbpath options are used in server tools Created: 03/Jun/14  Updated: 11/Jul/16  Resolved: 09/Jun/14

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: 2.7.2

Type: Improvement Priority: Minor - P4
Reporter: Linda Qin Assignee: Shaun Verch
Resolution: Done Votes: 0
Labels: cap-ticket-needed, community-team, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Tested
Participants:

 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



 Comments   
Comment by Githook User [ 09/Jun/14 ]

Author:

{u'name': u'Shaun Verch', u'email': u'shaun.verch@mongodb.com'}

Message: SERVER-14140 Disallow setting both --host and --dbpath in tools
Branch: master
https://github.com/mongodb/mongo/commit/cd57c77fd4cf42173a5c9209032ef72504f4ecfa

Generated at Thu Feb 08 03:33:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.