To invoke a given option, simply add it to the command line following mongodump. Options can be combined, although some will be mutually exclusive. Here is a list of the mongodump command-line options:
Category |
Option |
Category |
Option |
General |
--help |
Namespace |
--db=<database-name> |
Connection | --host <hostname> --port <port_number> |
URI (connection string) | --uri=mongodb-uri |
Secure Sockets Layer (SSL) (MongoDBÂ version 4.0 and below) |
--ssl --sslCAFile=<filename> --sslPEMKeyFile=<filename> --sslPEMKeyPassword=<password> --sslCRLFile=<filename> --sslAllowInvalidCertificates --sslAllowInvalidHostnames --sslFIPSMode |
Query | --query="<JSON string forming a filter>" --queryFile=<file containing a query filter> --readPreference=<string>|<json> --forceTableScan |
TLS (MongoDB version... |