1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
The main reason you are seeing "error parsing positional arguments" is the first '-' in '–-sslCAFile' is actually a Unicode EN DASH.
Also, it's not clear in the original post if this is a multi-line or single line command. Use the \
character only for multi-line input.
2 other changes to make are:
- use
--host
option instead of--uri
- add
--ssl
option
The command should look like the following:
mongorestore -ssl --username <username> --password <password> \
--host="mongodb://my-documentdb-cluster.cluster-abcd1234.us-east-2.docdb.amazonaws.com:27017" \
--sslCAFile rds-combined-ca-bundle.pem --db <dbname> /var/lib/mongodb/dumps/dump
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 6 mois
- demandé il y a 2 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 4 ans
- AWS OFFICIELA mis à jour il y a 8 mois
- AWS OFFICIELA mis à jour il y a 8 mois