Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2323

mongodump error specifying the password flag/parameter as a command line argument -p

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.6.3
    • Component/s: mongodump, mongorestore
    • Labels:
      None
    • Environment:
      Ubuntu 18+

      Hi Team,

       

      When I try to using mongodump/mongoresstore in a command line with password flag it is throwin an error line saying as below - 

      2019-07-01T10:17:03.325+0200 error parsing command line options: expected argument for flag `p, --password', but got option `authenticationDatabase'2019-07-01T10:17:03.325+0200 error parsing command line options: expected argument for flag `-p, --password', but got option `authenticationDatabase'2019-07-01T10:17:03.325+0200 try 'mongodump --help' for more information .                                                                               But what I doubt about it is - we should pass the argument -p/-password as a  parameter in command line without passing passwprd like -ppasowrd-something.

      It is not preferred to pass a password as per my understanding. because it will in the latest history of the instance.

      But when I try wihout -p parameter it works fine and it ask for the password to be entered to take a backup or restore.

      Can you please give me the context of it. Just for the information and for batter understanding I prefer -p without Password in the command line.   

      Thanks & Regards

      Madhu 

            Assignee:
            seth.payne@mongodb.com Seth Payne
            Reporter:
            madhungowda6590@gmail.com Madhu N
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: