From 66da934be27f176d4ff2e8ef9bd7be33c7afde54 Mon Sep 17 00:00:00 2001 From: Tomi Eckert Date: Wed, 8 Oct 2025 21:18:47 +0200 Subject: [PATCH] fix(backup): Fixed obsolete config option. --- backup/backup.conf | 3 --- backup/backup.sh | 7 +++---- packages.conf | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/backup/backup.conf b/backup/backup.conf index 91e30bb..52047fc 100644 --- a/backup/backup.conf +++ b/backup/backup.conf @@ -4,9 +4,6 @@ # --- Connection Settings --- -# Full path to the SAP HANA hdbsql executable. -HDBSQL_PATH="/usr/sap/hdbclient/hdbsql" - # User key name from the hdbuserstore. # This key should be configured to connect to the target tenant database. USER_KEY="CRONKEY" diff --git a/backup/backup.sh b/backup/backup.sh index d3da7a1..73a9ae4 100644 --- a/backup/backup.sh +++ b/backup/backup.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Version: 1.0.6 +# Version: 1.0.7 # ============================================================================== # SAP HANA Backup Script # @@ -13,7 +13,7 @@ # Find the script's own directory to locate the config file and hanatool.sh SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd) CONFIG_FILE="${SCRIPT_DIR}/backup.conf" -HANATOOL_PATH="${SCRIPT_DIR}/../hanatool.sh" # Assuming hanatool.sh is in the parent directory +HANATOOL_PATH="${SCRIPT_DIR}/hanatool.sh" # Assuming hanatool.sh is in the parent directory # Check for config file and source it if [[ -f "$CONFIG_FILE" ]]; then @@ -35,8 +35,7 @@ echo "⚙️ Starting HANA backup process using hanatool.sh..." mkdir -p "$BACKUP_BASE_DIR" -# Common options for hanatool.sh -COMMON_OPTIONS="--hdbsql \"$HDBSQL_PATH\"" +SCHEMA_EXPORT_OPTIONS="" case "$BACKUP_TYPE" in schema) diff --git a/packages.conf b/packages.conf index 168f826..141eebc 100644 --- a/packages.conf +++ b/packages.conf @@ -10,7 +10,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.6|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.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["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"