DocumentDB dump
2022. 11. 17. 17:26ㆍAWS/Amazon DocumentDB (with MongoDB compatib
728x90
SMALL
- 개요
AWS document db를 파일 형식으로 Dump 하는 방법을 정리했다
- 방법1 ( mongdump 설치 on amazon linux 2 )
yum install -y https://fastdl.mongodb.org/tools/db/mongodb-database-tools-amazon2-x86_64-100.6.1.rpm
- 방법2 ( mongodb tls/ssl enabled dump )
## 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
- 참고
https://docs.aws.amazon.com/documentdb/latest/developerguide/backup_restore-dump_restore_import_export_data.html
https://www.mongodb.com/docs/database-tools/installation/installation-linux/
728x90
LIST
'AWS > Amazon DocumentDB (with MongoDB compatib' 카테고리의 다른 글
Amazon DocumentDB TLS 비활성화 하기 (0) | 2023.12.29 |
---|