Skip to content

Commit 80a877f

Browse files
committed
Re-enable ES backups against v2.0 appliances
1 parent e543707 commit 80a877f

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

bin/ghe-backup

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,9 @@ echo "Backing up GitHub Pages ..."
122122
ghe-backup-pages-${GHE_BACKUP_STRATEGY} ||
123123
failures="$failures pages"
124124

125-
if [ "$GHE_VERSION_MAJOR" -lt 2 ]; then
126-
echo "Backing up Elasticsearch indices ..."
127-
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
125+
echo "Backing up Elasticsearch indices ..."
126+
ghe-backup-es-${GHE_BACKUP_STRATEGY} ||
127+
failures="$failures elasticsearch"
132128

133129
# If we're using the tarball backup strategy, bring the appliance out of
134130
# maintenance mode now instead of waiting until after pruning stale snapshots.

0 commit comments

Comments
 (0)