Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
elasticdump all indices
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
@ZJONSSON

This comment has been minimized.

Copy link

@ZJONSSON ZJONSSON commented Dec 8, 2016

👍

@sametsazak

This comment has been minimized.

Copy link

@sametsazak sametsazak commented Jan 23, 2018

Thanks, nice idea.

@enricopesce

This comment has been minimized.

Copy link

@enricopesce enricopesce commented Jul 24, 2019

multielasticdump --direction=dump --input=http://127.0.0.1:9200 --output=./

@Liberateur

This comment has been minimized.

Copy link

@Liberateur Liberateur commented Oct 7, 2020

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