From 83bba2ed8928580687011c7f7e5f8f14ff96a6d6 Mon Sep 17 00:00:00 2001 From: Joshua Brooks Date: Fri, 9 Apr 2021 13:17:00 -0400 Subject: [PATCH 1/3] Add backup cadence variable to the appliance --- share/github-backup-utils/ghe-backup-mssql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/github-backup-utils/ghe-backup-mssql b/share/github-backup-utils/ghe-backup-mssql index d878f76b3..7edf74898 100755 --- a/share/github-backup-utils/ghe-backup-mssql +++ b/share/github-backup-utils/ghe-backup-mssql @@ -180,6 +180,9 @@ if [ -n "$backup_command" ]; then ghe-ssh "$GHE_HOSTNAME" -- "$backup_command" || failures="$failures mssql" bm_end "$(basename $0)" + # Configure the backup cadence on the appliance, which is used for diagnostics + ghe-ssh "$GHE_HOSTNAME" -- "ghe-config mssql.backup.cadence $cadence" + # Transfer backup files from appliance to backup host appliance_dir="$GHE_REMOTE_DATA_DIR/user/mssql/backups" backups=$(echo "set -o pipefail; if sudo test -d \"$appliance_dir\"; then \ From dff2d6e125499b952ac6a5d0d0bda0516ff10279 Mon Sep 17 00:00:00 2001 From: Joshua Brooks Date: Fri, 9 Apr 2021 14:33:04 -0400 Subject: [PATCH 2/3] Fix syntax --- share/github-backup-utils/ghe-backup-mssql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/github-backup-utils/ghe-backup-mssql b/share/github-backup-utils/ghe-backup-mssql index 7edf74898..2f48ce6af 100755 --- a/share/github-backup-utils/ghe-backup-mssql +++ b/share/github-backup-utils/ghe-backup-mssql @@ -181,7 +181,7 @@ if [ -n "$backup_command" ]; then bm_end "$(basename $0)" # Configure the backup cadence on the appliance, which is used for diagnostics - ghe-ssh "$GHE_HOSTNAME" -- "ghe-config mssql.backup.cadence $cadence" + ghe-ssh "$GHE_HOSTNAME" "ghe-config mssql.backup.cadence $cadence" # Transfer backup files from appliance to backup host appliance_dir="$GHE_REMOTE_DATA_DIR/user/mssql/backups" From db857c0dbcae503504d3696857a2aff2a9ba7207 Mon Sep 17 00:00:00 2001 From: Joshua Brooks Date: Fri, 9 Apr 2021 14:55:05 -0400 Subject: [PATCH 3/3] Fix again --- share/github-backup-utils/ghe-backup-mssql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/github-backup-utils/ghe-backup-mssql b/share/github-backup-utils/ghe-backup-mssql index 2f48ce6af..cfb50bd9a 100755 --- a/share/github-backup-utils/ghe-backup-mssql +++ b/share/github-backup-utils/ghe-backup-mssql @@ -181,7 +181,7 @@ if [ -n "$backup_command" ]; then bm_end "$(basename $0)" # Configure the backup cadence on the appliance, which is used for diagnostics - ghe-ssh "$GHE_HOSTNAME" "ghe-config mssql.backup.cadence $cadence" + ghe-ssh "$GHE_HOSTNAME" "ghe-config mssql.backup.cadence $GHE_MSSQL_BACKUP_CADENCE" # Transfer backup files from appliance to backup host appliance_dir="$GHE_REMOTE_DATA_DIR/user/mssql/backups"