#!/bin/bash
echo "start dump elasticsearch data"
./elasticdump --input=http://58.210.102.93:9200/.kibana --output=http://192.168.0.97:9200/.kibana --type=mapping
./elasticdump --input=http://58.210.102.93:9200/.kibana --output=http://192.168.0.97:9200/.kibana --type=data
./elasticdump --input=http://58.210.102.93:9200/medicines_rec --output=http://192.168.0.97:9200/medicines_rec --type=mapping
./elasticdump --input=http://58.210.102.93:9200/medicines_rec --output=http://192.168.0.97:9200/medicines_rec --type=data
./elasticdump --input=http://58.210.102.93:9200/medicines --output=http://192.168.0.97:9200/medicines --type=mapping
./elasticdump --input=http://58.210.102.93:9200/medicines --output=http://192.168.0.97:9200/medicines --type=data
./elasticdump --input=http://58.210.102.93:9200/iom_cloud --output=http://192.168.0.97:9200/iom_cloud --type=mapping
./elasticdump --input=http://58.210.102.93:9200/iom_cloud --output=http://192.168.0.97:9200/iom_cloud --type=data
./elasticdump --input=http://58.210.102.93:9200/iom-es --output=http://192.168.0.97:9200/iom-es --type=mapping
./elasticdump --input=http://58.210.102.93:9200/iom-es --output=http://192.168.0.97:9200/iom-es --type=data
echo "dump elasticsearch over data"