1、下載esm工具
https://github.com/medcl/esm-abandoned
https://github.com/medcl/esm-abandoned/releases
tar xf linux64.tar.gz
2、
備份es
cd /root/bin/linux64/
./esm -s http://10.33.8.103:9201 -x "petition_data" -b 5 --count=5000 --sliced_scroll_size=10 --refresh -o=./es_backup.bin
導入
./esm -d http://172.16.20.20:9201 -y "petition_data6" -c 5000 -b 5 --refresh -i=./dump.bin