码迷,mamicode.com
首页 > 其他好文 > 详细

es备份索引

时间:2019-03-12 12:01:51      阅读:365      评论:0      收藏:0      [点我收藏+]

标签:url   nbsp   备份   dump   hub   com   lease   git   done   

1、解压
https://github.com/medcl/esm-abandoned
https://github.com/medcl/esm-abandoned/releases

tar xf linux64.tar.gz


1、备份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


2、新建索引
es.sh
3、导入
./esm -d http://172.16.20.20:9201 -y "petition_data6" -c 5000 -b 5 --refresh -i=./dump.bin

 

 

#删除索引
#curl -XDELETE ‘172.16.20.20:9201/petition_data4?pretty‘

es备份索引

标签:url   nbsp   备份   dump   hub   com   lease   git   done   

原文地址:https://www.cnblogs.com/chuangcc/p/10515582.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!