Skip to content

Commit 247318d

Browse files
committed
remove ES 1.x indices in >=2.14
1 parent 61bee70 commit 247318d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ 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
58+
# restoring in >=2.14 will remove incompatible indices created with 1.x.
59+
if [ "$GHE_VERSION_MAJOR" -eq 2 ] && [ "$GHE_VERSION_MINOR" -ge 14 ]; then
6060
ghe-ssh "$GHE_HOSTNAME" -- "sudo /usr/local/share/enterprise/ghe-es-remove-1x-indices"
6161
fi
6262

0 commit comments

Comments
 (0)