From 4997e05eabeb22d3a0b7d640d94ff196f257a9fa Mon Sep 17 00:00:00 2001 From: Michael Kennedy Date: Mon, 6 Jan 2020 21:31:02 -0800 Subject: [PATCH] Add authenticated message. --- data/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/data/README.md b/data/README.md index 65de049..991204a 100644 --- a/data/README.md +++ b/data/README.md @@ -4,4 +4,12 @@ To restore any of these databases to MongoDB, you'll need to uncompress them and ``` mongorestore --drop --db DATABASE /path/to/unziped/dir -``` \ No newline at end of file +``` + +If you are using an authenticated connection on another server, this more verbose version is required: + +``` +mongorestore -u admin -p --authenticationDatabase 'admin' --ssl --host --sslCAFile mongod.crt --sslPEMKeyFile mongod.pem --drop --db DATABASE /path/to/unziped/dir +``` + +Note this references this two MongoDB certifications for connecting. You can altermantively use the `--sslAllowInvalidCertificates` flag to ignore them.