We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fff5d5 commit ff18e10Copy full SHA for ff18e10
1 file changed
bin/ghe-backup
@@ -122,9 +122,13 @@ echo "Backing up GitHub Pages ..."
122
ghe-backup-pages-${GHE_BACKUP_STRATEGY} ||
123
failures="$failures pages"
124
125
-echo "Backing up Elasticsearch indices ..."
126
-ghe-backup-es-${GHE_BACKUP_STRATEGY} ||
127
-failures="$failures elasticsearch"
+if [ "$GHE_VERSION_MAJOR" -lt 2 ]; then
+ echo "Backing up Elasticsearch indices ..."
+ ghe-backup-es-${GHE_BACKUP_STRATEGY} ||
128
+ failures="$failures elasticsearch"
129
+else
130
+ echo "Skipping Elasticsearch backup under v2.x (not yet supported)"
131
+fi
132
133
# If we're using the tarball backup strategy, bring the appliance out of
134
# maintenance mode now instead of waiting until after pruning stale snapshots.
0 commit comments