Skip to content

Instantly share code, notes, and snippets.

@goldblade
Created January 6, 2020 15:11
Show Gist options
  • Select an option

  • Save goldblade/0bd1885578f1f3def874d631e112f833 to your computer and use it in GitHub Desktop.

Select an option

Save goldblade/0bd1885578f1f3def874d631e112f833 to your computer and use it in GitHub Desktop.
Multiplie copy elastic search
#!/bin/sh
QA_INDEX=
QA_OLD_HOST=
QA_NEW_HOST=
if ! type elasticdump > /dev/null; then
echo "Installing elasticdump"
yarn global add elasticdump
echo "asdf reshim"
asdf reshim
fi
multielasticdump \
--direction=dump \
--input=$QA_OLD_HOST \
--output=$QA_NEW_HOST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment