Skip to content

Instantly share code, notes, and snippets.

@fijimunkii
Created December 2, 2016 23:30
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save fijimunkii/20227aff19aafa10dbdb654e2770b287 to your computer and use it in GitHub Desktop.
Save fijimunkii/20227aff19aafa10dbdb654e2770b287 to your computer and use it in GitHub Desktop.
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
Copy link

ZJONSSON commented Dec 8, 2016

👍

@sametsazak
Copy link

Thanks, nice idea.

@enricopesce
Copy link

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

@Liberateur
Copy link

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