Created
April 13, 2021 09:49
-
-
Save daffodilistic/d61449c934f08420a3881ae578720f60 to your computer and use it in GitHub Desktop.
Dump and Restore ElasticSearch documents and indices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
elasticdump --input=$1 --output=$2 \ | |
--type=analyzer --concurrencyInterval=500 | |
curl -X POST "$2/_open?pretty" | |
elasticdump --input=$1 --output=$2 \ | |
--type=mapping --concurrencyInterval=500 | |
elasticdump --input=$1 --output=$2 \ | |
--type=data --concurrencyInterval=500 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment