fix(backup): Fixed obsolete config option.

This commit is contained in:
2025-10-08 21:18:47 +02:00
parent 3355727a9b
commit 66da934be2
3 changed files with 4 additions and 8 deletions

View File

@@ -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"

View File

@@ -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)