-
Type: Task
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: 3.6.3
-
Component/s: mongodump, mongorestore
-
None
-
Environment:Ubuntu 18+
-
(copied to CRM)
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