elasticsearch / / 2022. 12. 23. 07:00

elasticdump를 이용한 index export/import

우선 elasticdump를 설치하자.

설치

npm install elasticdump -g

export

elasticdump \
--input=http://localhost:9200/test_index \
--output /tmp/test_index.json
--type=data

import

elasticdump \
--input=test_index.json \
--output=http://localhost:9200/test_index \
--type=data
반응형
  • 네이버 블로그 공유
  • 네이버 밴드 공유
  • 페이스북 공유
  • 카카오스토리 공유