We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f147183 commit 08fd493Copy full SHA for 08fd493
1 file changed
libexec/ghe-restore-es-rsync
@@ -30,8 +30,10 @@ if ! tar --version | grep -q GNU; then
30
fi
31
32
# Transfer all ES data from the latest snapshot to the GitHub instance.
33
-
34
-if [ "$GHE_VERSION_MAJOR" -gt 1 ]; then
+if [ ! -d "$GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT/elasticsearch" ]; then
+ echo "Warning: Elasticsearch backup missing. Skipping ..."
35
+ exit 0
36
+elif [ "$GHE_VERSION_MAJOR" -gt 1 ]; then
37
cd "$GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT/elasticsearch"
38
ghe-ssh "$host" -- "sudo mkdir -p '$GHE_REMOTE_DATA_USER_DIR/elasticsearch-legacy'" 1>&3
39
0 commit comments