fix(backup): Fixed obsolete config option.
This commit is contained in:
@@ -4,9 +4,6 @@
|
|||||||
|
|
||||||
# --- Connection Settings ---
|
# --- Connection Settings ---
|
||||||
|
|
||||||
# Full path to the SAP HANA hdbsql executable.
|
|
||||||
HDBSQL_PATH="/usr/sap/hdbclient/hdbsql"
|
|
||||||
|
|
||||||
# User key name from the hdbuserstore.
|
# User key name from the hdbuserstore.
|
||||||
# This key should be configured to connect to the target tenant database.
|
# This key should be configured to connect to the target tenant database.
|
||||||
USER_KEY="CRONKEY"
|
USER_KEY="CRONKEY"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Version: 1.0.6
|
# Version: 1.0.7
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# SAP HANA Backup Script
|
# SAP HANA Backup Script
|
||||||
#
|
#
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
# Find the script's own directory to locate the config file and hanatool.sh
|
# Find the script's own directory to locate the config file and hanatool.sh
|
||||||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
|
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
|
||||||
CONFIG_FILE="${SCRIPT_DIR}/backup.conf"
|
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
|
# Check for config file and source it
|
||||||
if [[ -f "$CONFIG_FILE" ]]; then
|
if [[ -f "$CONFIG_FILE" ]]; then
|
||||||
@@ -35,8 +35,7 @@ echo "⚙️ Starting HANA backup process using hanatool.sh..."
|
|||||||
|
|
||||||
mkdir -p "$BACKUP_BASE_DIR"
|
mkdir -p "$BACKUP_BASE_DIR"
|
||||||
|
|
||||||
# Common options for hanatool.sh
|
SCHEMA_EXPORT_OPTIONS=""
|
||||||
COMMON_OPTIONS="--hdbsql \"$HDBSQL_PATH\""
|
|
||||||
|
|
||||||
case "$BACKUP_TYPE" in
|
case "$BACKUP_TYPE" in
|
||||||
schema)
|
schema)
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ declare -A SCRIPT_PACKAGES
|
|||||||
|
|
||||||
# Format: short_name="Display Name|Version|Description|URL1 URL2..."
|
# 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["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["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["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"
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user