This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9887|Reply: 0

Elasticsearch uses elasticdump to back up and migrate data

[Copy link]
Posted on 2021-11-7 21:18:46 | | | |
Requirements: Recently, I need to migrate the data in Elasticsearch, search for information online, and export index mapping mapping and data through the elasticdump tool.

Review:

Install the standalone version of elasticsearch 7.10.2 tutorial on Windows
https://www.itsvse.com/thread-9962-1-1.html

Introduction to Elasticsearch search highlight configuration
https://www.itsvse.com/thread-9562-1-1.html

.NET/C# Use Elasticsearch debugging to view request and response information
https://www.itsvse.com/thread-9561-1-1.html

ASP.NET Core Link Trace (5) Jaeger data persists to elasticsearch
https://www.itsvse.com/thread-9553-1-1.html

Elasticsearch (ES) replicates the clone index
https://www.itsvse.com/thread-9545-1-1.html

Elasticsearch(ES) cluster health: yellow (6 of 7) status
https://www.itsvse.com/thread-9544-1-1.html

Elasticsearch(ES) cluster health: red Failure analysis
https://www.itsvse.com/thread-9543-1-1.html

Java Geolocation Information in ElasticSearch (geo_point)
https://www.itsvse.com/thread-6444-1-1.html

ElasticsearchParseException[field must be either [lat], [lon] or [geohash]]
https://www.itsvse.com/thread-6442-1-1.html

elasticsearch-mappingfield type
https://www.itsvse.com/thread-6436-1-1.html

Elasticsearch:No handler for type [string] declared on field[XX]的解决办法
https://www.itsvse.com/thread-6420-1-1.html

【Practical Action】Kibana installation tutorial for Elasticsearch
https://www.itsvse.com/thread-6400-1-1.html

Geo geographic coordinates of the Elasticsearch advanced feature family
https://www.itsvse.com/thread-6399-1-1.html

ElasticSearch compound queries must, should, must_not use
https://www.itsvse.com/thread-6334-1-1.html

Elasticsearch deletes and indexes all document data
https://www.itsvse.com/thread-6321-1-1.html

[Actual combat]. net/c# Call elasticsearch search via NEST [with source code]
https://www.itsvse.com/thread-6294-1-1.html

Causes and solutions for unassigned_shards single-node Elasticsearch
https://www.itsvse.com/thread-6193-1-1.html

Tutorial on installing elasticsearch-analysis-ik in elasticsearch-6.5.2
https://www.itsvse.com/thread-6191-1-1.html

Install the elasticsearch-6.5.2 elasticsearch-head plugin
https://www.itsvse.com/thread-6190-1-1.html

Centos 7 installation and deployment elasticsearch-6.5.2 tutorial
https://www.itsvse.com/thread-6173-1-1.html
Elasticdump works by sending an input to output, both of which can be elasticsearch URLs or file paths.

Documentation:The hyperlink login is visible.

input to output parameter

Elasticsearch URL format:

Format: {protocol}://{host}:{port}/{index}
Example:http://127.0.0.1:9200/my_index

File Path:

Format: {FilePath}
Example:/Users/evantahler/Desktop/dump.json

type parameter

Support: data (default), settings, analyzer, mapping, policy, alias, template, component_template, index_template

You can install the elasticdump tool through npm, I won't download it here, I will directly use docker to export the data here. The version of Elasticsearch used in this article is: 6.5.2

Export the mapping file

Export the mapping of my_index to the local disk /tmp/my_index_mapping.json with the following command:


Export data

Export my_index's data to the local disk /tmp/my_index_data.json with the following command:




The following is an example of data migration for ES -> ES

The command is as follows:

(End)





Previous:Test cross-domain requests through the browser console
Next:The file or folder does not exist when the Docker volume is mounted
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com