Skip to content

Commit 61bee70

Browse files
committed
remove indices created with ES 1.x
1 parent 7943302 commit 61bee70

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

share/github-backup-utils/ghe-restore-es-rsync

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ elif [ "$GHE_VERSION_MAJOR" -gt 1 ]; then
5555
"$snapshot_dir/elasticsearch/" \
5656
"$(ssh_host_part "$GHE_HOSTNAME"):$GHE_REMOTE_DATA_USER_DIR/elasticsearch-restore" 1>&3
5757

58+
# restoring in 2.14 will remove incompatible indices created with 1.x.
59+
if [ "$GHE_VERSION_MAJOR" -eq 2 ] && [ "$GHE_VERSION_MINOR" -eq 14 ]; then
60+
ghe-ssh "$GHE_HOSTNAME" -- "sudo /usr/local/share/enterprise/ghe-es-remove-1x-indices"
61+
fi
62+
5863
# restoring v11.10.x ES snapshot into a v11.10.x appliance
5964
else
6065
# Use GNU tar on BSDs.

0 commit comments

Comments
 (0)