Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

Latest commit

 

History

History
27 lines (16 loc) · 730 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 730 Bytes

migrate-elasticseach

Migrates data from one elasticsearch cluster to another

usage

migrate-elasticseach <source> <destination> [regex of indexes to copy]

options

-v, --verbose    enable debug messages
-O, --overwrite  erase all documents in an index before copying
-R, --remove  remove indexes not on source
-y, --yes  confirm

examples

Migrate all indexes removing all existing data first

migrate-elasticseach -RO clusterA clusterB

Migrate only the daily indexes before October

migrate-elasticsearch -O clusterA clusterB daily\.2017-(01|02|03|04|05|06|07|08|09|10).*

Migrate any indexes that do not already exist (and have a least 1 document)

migrate-elasticsearch clusterA clusterB