-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: mongorestore
-
Labels:None
-
Environment:Mac OS 10.14.6
-
1,669
-
(copied to CRM)
Currently the syntax to restore a database is
```
mongorestore -h <someHost> -d <someDatabase> -u <someUser> -p <somePassword> <someDirectory>
```
This exposes the password in the history. I suggest the syntax change to
```
mongorestore -h <someHost> -d <someDatabase> -u <someUser> <someDirectory> -p
```
so that the user is prompted to enter the password after this command is executed.