You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Check to make sure moreutils parallel is installed and working properly
46
90
ghe_parallel_check
47
91
@@ -121,7 +165,7 @@ ghe_restore_check
121
165
# Check to see if there is a running backup
122
166
if [ -h ../in-progress ];then
123
167
124
-
log_error "Error: detected a backup already in progress from a previous version of ghe-backup. \nIf there is no backup in progress anymore, please remove \nthe $GHE_DATA_DIR/in-progress file."1>&2
168
+
log_error "Detected a backup already in progress from a previous version of ghe-backup. \nIf there is no backup in progress anymore, please remove \nthe $GHE_DATA_DIR/in-progress file.">&2
125
169
exit 1
126
170
fi
127
171
@@ -139,17 +183,39 @@ if [ -f ../in-progress ]; then
139
183
fi
140
184
fi
141
185
186
+
# Perform a host connection check and establish the remote appliance version.
187
+
# The version is available in the GHE_REMOTE_VERSION variable and also written
188
+
# to a version file in the snapshot directory itself.
189
+
ghe_remote_version_required
190
+
echo"$GHE_REMOTE_VERSION"> version
191
+
192
+
# check that incremental settings are valid if set
193
+
is_inc=$(is_incremental_backup_feature_on)
194
+
195
+
if [ "$is_inc"=true ];then
196
+
if [ "$GHE_VERSION_MAJOR"-lt 3 ];then
197
+
log_error "Can only perform incremental backups on enterprise version 3.10 or higher"
198
+
exit 1
199
+
fi
200
+
if [ "$GHE_VERSION_MINOR"-lt 10 ];then
201
+
log_error "Can only perform incremental backups on enterprise version 3.10 or higher"
202
+
exit 1
203
+
fi
204
+
205
+
incremental_backup_check
206
+
# If everything is ok, check if we have hit GHE_MAX_INCREMENTAL_BACKUPS, performing pruning actions if necessary
207
+
check_for_incremental_max_backups
208
+
# initialize incremental backup if it hasn't been done yet
0 commit comments