From 557cb807dd4b85b300bf5462d8c06c8071e0c329 Mon Sep 17 00:00:00 2001 From: Tomi Eckert Date: Thu, 9 Oct 2025 10:15:34 +0200 Subject: [PATCH] fix(backup): Fix an issue where backup script would try to create an obsolete dir for the systemdb backup --- backup/backup.sh | 4 ++-- packages.conf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backup/backup.sh b/backup/backup.sh index adbce82..6f17fc3 100644 --- a/backup/backup.sh +++ b/backup/backup.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Version: 1.0.7 +# Version: 1.0.8 # Author: Tomi Eckert # ============================================================================== # SAP HANA Backup Script @@ -115,7 +115,7 @@ if [[ "$BACKUP_TYPE" == "tenant" || "$BACKUP_TYPE" == "all" ]]; then if [[ "$COMPRESS_TENANT" == "true" ]]; then # SYSTEMDB compression uses COMPRESS_TENANT setting SYSTEMDB_BACKUP_OPTIONS+=" --compress" fi - "$HANATOOL_PATH" "$SYSTEMDB_USER_KEY" backup "${BACKUP_BASE_DIR}/systemdb" $SYSTEMDB_BACKUP_OPTIONS + "$HANATOOL_PATH" "$SYSTEMDB_USER_KEY" backup "${BACKUP_BASE_DIR}/tenant" $SYSTEMDB_BACKUP_OPTIONS if [[ $? -ne 0 ]]; then echo "❌ Error: SYSTEMDB backup failed." fi diff --git a/packages.conf b/packages.conf index dfe3d9f..2ffb996 100644 --- a/packages.conf +++ b/packages.conf @@ -11,7 +11,7 @@ declare -A SCRIPT_PACKAGES # Format: short_name="Display Name|Version|Description|URL1 URL2..." SCRIPT_PACKAGES["aurora"]="Aurora Suite|2.1.0|A collection of scripts for managing Aurora database instances.|https://git.technopunk.space/tomi/Scripts/raw/branch/main/aurora/aurora.sh https://git.technopunk.space/tomi/Scripts/raw/branch/main/aurora/aurora.conf" -SCRIPT_PACKAGES["backup"]="Backup Suite|1.0.7|A comprehensive script for backing up system files and databases.|https://git.technopunk.space/tomi/Scripts/raw/branch/main/backup/backup.sh https://git.technopunk.space/tomi/Scripts/raw/branch/main/backup/backup.conf" +SCRIPT_PACKAGES["backup"]="Backup Suite|1.0.8|A comprehensive script for backing up system files and databases.|https://git.technopunk.space/tomi/Scripts/raw/branch/main/backup/backup.sh https://git.technopunk.space/tomi/Scripts/raw/branch/main/backup/backup.conf" SCRIPT_PACKAGES["monitor"]="Monitor Suite|1.3.1|Scripts for monitoring system health and performance metrics.|https://git.technopunk.space/tomi/Scripts/raw/branch/main/monitor/monitor.sh https://git.technopunk.space/tomi/Scripts/raw/branch/main/monitor/monitor.conf|https://git.technopunk.space/tomi/Scripts/raw/branch/main/monitor/monitor.hook.sh" SCRIPT_PACKAGES["keymanager"]="Key Manager|1.2.2|A utility for managing HDB user keys for SAP HANA.|https://git.technopunk.space/tomi/Scripts/raw/branch/main/keymanager.sh" SCRIPT_PACKAGES["cleaner"]="File Cleaner|1.1.0|A simple script to clean up temporary files and logs.|https://git.technopunk.space/tomi/Scripts/raw/branch/main/cleaner.sh"