Created
December 2, 2016 23:30
-
-
Save fijimunkii/20227aff19aafa10dbdb654e2770b287 to your computer and use it in GitHub Desktop.
elasticdump all indices
This file contains 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
INPUT=$1 | |
DEST=$2 | |
indices=$(curl -s -XGET $INPUT/_cat/indices?h=i) | |
for INDEX in $indices | |
do | |
elasticdump --input=$INPUT/$INDEX --output=$DEST/$INDEX --type=data | |
done |
Thanks, nice idea.
multielasticdump --direction=dump --input=http://127.0.0.1:9200 --output=./
multielasticdump --direction=dump --input=http://127.0.0.1:9200 --output=./
I love you ! <3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍