Skip to content

Commit ff18e10

Browse files
committed
Skip Elasticsearch backups against v2.x remote appliances
This is going to take some work to figure out. Skipping for now so backup runs pass against v2.0 hosts.
1 parent 9fff5d5 commit ff18e10

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

bin/ghe-backup

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

125-
echo "Backing up Elasticsearch indices ..."
126-
ghe-backup-es-${GHE_BACKUP_STRATEGY} ||
127-
failures="$failures elasticsearch"
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
128132

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

0 commit comments

Comments
 (0)