elasticsearch 数据导出备份

安装

1.安装node

2.通过npm安装elasticdump

sh 复制代码
npm install elasticdump -g

导入导出数据

格式:elasticdump --input {protocol}://{host}:{port}/{index} --output ./test_index.json

导出当前索引的mapping结构

sh 复制代码
elasticdump --input http://ip:9200/test_index --output ./test_index_mapping.json --type=mapping

将索引中的数据导出到本地:

sh 复制代码
elasticdump --input=http://ip:9200/index --output=D:/date/test.json --type=data

将本地数据导入es中:

sh 复制代码
elasticdump --input=D:/date/test.json --output=http://ip:9200/index

将es导入另一个es:

sh 复制代码
elasticdump --input=http://ip1:9200/index --output=http://ip2:9200/index
相关推荐
kisy夏1 小时前
多千帆运营平台
大数据·爬虫·mysql
yyuuuzz6 小时前
独立站的技术基础与常见运维问题
大数据·运维·服务器·网络·数据库·aws
微擎应用11 小时前
智能售货柜公众号管理系统平台
大数据·人工智能
计算机安禾12 小时前
【算法分析与设计】第26篇:参数化算法与固定参数可解性理论
大数据·人工智能·算法·机器学习·剪枝
liushangzaibeijing12 小时前
Superpower 使用大纲
大数据·elasticsearch·搜索引擎
阿里云大数据AI技术13 小时前
阿里云 ES Agent Builder 使用指引
人工智能·搜索引擎
Elastic 中国社区官方博客13 小时前
每次操作一个 API 调用:Elastic Cloud Hosted 如何让大规模部署管理变得可行
大数据·运维·数据库·elasticsearch·搜索引擎·serverless
志栋智能16 小时前
超自动化安全:实现安全运营现代化的关键
大数据·运维·网络·安全·自动化
渣渣盟16 小时前
MySQL DDL操作全解析:从入门到精通,包含索引视图分区表等全操作解析
大数据·数据库·mysql
unclejet16 小时前
颠覆传统开发!AI根治软件工程技术债务顽疾
大数据·人工智能·软件工程