- outline
How to dump AWS DocumentDB into file format
- how-to
## install db tools package for DocumentDB
yum install -y https://fastdl.mongodb.org/tools/db/mongodb-database-tools-amazon2-x86_64-100.6.1.rpm
## all database dump
mongodump --ssl \
--host="sample-cluster.node.us-east-1.docdb.amazonaws.com:27017" \
--collection=sample-collection \
--out=sample-output-file \
--username=sample-user \
--password=abc0123 \
--sslCAFile rds-combined-ca-bundle.pem
## specific database dump
mongodump --ssl \
--host="sample-cluster.node.us-east-1.docdb.amazonaws.com:27017" \
--collection=sample-collection \
--db=sample-database \
--out=sample-output-file \
--username=sample-user \
--password=abc0123 \
--sslCAFile rds-combined-ca-bundle.pem
- reference
https://docs.aws.amazon.com/documentdb/latest/developerguide/backup_restore-dump_restore_import_export_data.html
mongodb.com/docs/database-tools/installatio..