We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7943302 + 247318d commit 8e9a938Copy full SHA for 8e9a938
share/github-backup-utils/ghe-restore-es-rsync
@@ -55,6 +55,11 @@ elif [ "$GHE_VERSION_MAJOR" -gt 1 ]; then
55
"$snapshot_dir/elasticsearch/" \
56
"$(ssh_host_part "$GHE_HOSTNAME"):$GHE_REMOTE_DATA_USER_DIR/elasticsearch-restore" 1>&3
57
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
60
+ ghe-ssh "$GHE_HOSTNAME" -- "sudo /usr/local/share/enterprise/ghe-es-remove-1x-indices"
61
+ fi
62
+
63
# restoring v11.10.x ES snapshot into a v11.10.x appliance
64
else
65
# Use GNU tar on BSDs.
0 commit comments