File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
share/github-backup-utils Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ ghe_remote_version_required "$GHE_HOSTNAME"
18
18
if is_service_external ' mysql' ; then
19
19
echo " Backing up external MySQL database using customer-provided script..."
20
20
if [ -n " $EXTERNAL_DATABASE_BACKUP_SCRIPT " ]; then
21
- $EXTERNAL_DATABASE_BACKUP_SCRIPT > " $GHE_SNAPSHOT_DIR /mysql.sql.gz "
21
+ $EXTERNAL_DATABASE_BACKUP_SCRIPT
22
22
else
23
23
echo " Error: EXTERNAL_DATABASE_BACKUP_SCRIPT is not configured. Please configure in backup.config."
24
24
exit 1
Original file line number Diff line number Diff line change @@ -30,8 +30,12 @@ snapshot_dir="$GHE_DATA_DIR/$GHE_RESTORE_SNAPSHOT"
30
30
31
31
# When customer uses external database, we rely on customer to implement the restore process
32
32
if is_service_external ' mysql' " $snapshot_dir /settings.json" ; then
33
- echo " Restore external MySQL database using customer-provided script ..."
34
- $EXTERNAL_DATABASE_RESTORE_SCRIPT
33
+ if [ -n " $EXTERNAL_DATABASE_RESTORE_SCRIPT " ]; then
34
+ $EXTERNAL_DATABASE_RESTORE_SCRIPT
35
+ else
36
+ echo " Error: EXTERNAL_DATABASE_RESTORE_SCRIPT is not configured. Please configure in backup.config."
37
+ exit 1
38
+ fi
35
39
else
36
40
ssh_config_file_opt=
37
41
if is_binary_backup_feature_on; then
You can’t perform that action at this time.
0 commit comments