- Today
- Total
반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- secrets manager example code
- 숲느낌
- mongo to mysql
- Index 1 out of bounds for length 1
- 이미지오류
- 데이트코스
- Jakarta Persistence
- Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type.
- deeplearning4j
- 수원맛집
- mongodb atlas
- 몽고디비 클론
- secrets manager
- amozon
- AWS
- 주차가능
- unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
- 수원
- 401error
- secrets-manager-config
- Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type.
- adverising
- java
- presigned
- python
- 인계동
- opennlp
- 구 트위터
- Cannot have overlapping
- source endpoint
Archives
DevOps-Life
[MongoDB] Database clone 작업 본문
반응형
SMALL
mongodb Tools을 일단 다운받아야한다.
https://www.mongodb.com/try/download/database-tools
Try MongoDB Tools - Download Free Here
Free download for MongoDB tools to do more with your database. MongoDB Shell, Compass, CLI for Cloud, BI Connector and other database tools available.
www.mongodb.com
다운 받은 뒤 해당 path에서
dump 실행
.\mongodump.exe --uri "mongodb+srv://{id}:{password}@{host}/{database}" --out ./
{} 안에 자신 해당하는 값을 넣는다.
나는 A database를 B로 클론 할것이다.
.\mongorestore.exe --uri "mongodb+srv://{id}:{password}@{host} " --nsFrom {A_database}.* --nsTo {B_database}.*
id : username
password : password
host : host
A_database : 덤프 뜰 데이터베이스
B_database : import( 새로 만들 데이터베이스명)
{} 중괄호는 없이 값을 넣는다.
반응형
LIST
'IT > System' 카테고리의 다른 글
| [AWS] ACM Amazon SSL 인증서 내보내기(다운로드) (4) | 2024.04.22 |
|---|---|
| [FCM] IOS 401 error (4) | 2024.04.11 |
| [AWS DMS] MongoDB Atlas To AWS RDS(Mysql) endpoint 생성 (0) | 2023.11.07 |
| [AWS] Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type. (1) | 2023.09.14 |
| SSH 공개키와 개인키 (0) | 2018.12.31 |
Comments