Created
January 6, 2020 15:11
-
-
Save goldblade/0bd1885578f1f3def874d631e112f833 to your computer and use it in GitHub Desktop.
Multiplie copy elastic search
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/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