用elasticsearchdump备份恢复数据
作者:互联网
1.安装elastic searchdump
mkdir /data/nodejs cd /data/nodejs wget https://nodejs.org/dist/v10.16.2/node-v10.16.2-linux-x64.tar.xz tar xvf node-v10.16.2-linux-x64.tar.xz -C /usr/local/ echo 'export PATH=/usr/local/node-v10.16.2-linux-x64/bin:$GOPATH/bin:$PATH' >> /etc/profile
2.备份数据
elasticdump --input=http://192.168.1.49:9200/mytest --output=/tmp/indexname.json --type=data --limit=10000 --concurrency=1
3.恢复到新集群
elasticdump --input=/tmp/indexname.json --output=http://192.168.1.144:9200/mytest --type=data --limit=10000 --concurrency=20
参考:https://aikbuk.com/2019/09/29/elasticsearch%E5%A4%87%E4%BB%BD%E6%81%A2%E5%A4%8D/
标签:tar,nodejs,恢复,备份,x64,elasticsearchdump,linux,v10.16,data 来源: https://www.cnblogs.com/hixiaowei/p/11792079.html