Migrate your indexes between elastic's using docker and elasticdump/elasticsearch-dump image
- Get indexes list for migration
curl -k http://<FROM>:9200/_cat/indices |awk '{ print $3 }' > ~/Downloads/text1.txt
- Parse
tr '\n' ' ' < ~/Downloads/text1.txt
- Copy list of indexes to
arr
into thees_dump.sh
script
- Run docker
- Run script with the next command
./es_dump.sh $1 $2
, which two parameters are:
- $1 - IP Adress parameter where you setting up FROM copy indexes
- $1 - IP Adress parameter where you setting up TO copy indexes