Dump elastic data from one URL to other
Feb 5, 2021
Steps to copy the schema/mapping of your elastic data:
Using Docker:
- Pull the image by the below command:
docker pull elasticdump/elasticsearch-dump
2. Once the image is pulled, run the below command:
In the input provide the source URL and the index you want to copy, and in the output provide the URL where you want to copy the schema.
docker run --rm -ti elasticdump/elasticsearch-dump \
--input=http://production.es.com:9200/my_index \
--output=http://staging.es.com:9200/my_index \
--type=mapping