add backup suite

This commit is contained in:
2025-09-09 10:56:09 +02:00
parent fb2afbb19d
commit 0104042273
3 changed files with 170 additions and 0 deletions

33
backup/backup.conf Normal file
View File

@@ -0,0 +1,33 @@
# ==============================================================================
# Configuration for HANA Backup Script (backup.sh)
# ==============================================================================
# --- 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"
# --- Backup Settings ---
# The base directory where all backup files and directories will be stored.
# Ensure this directory exists and that the OS user running the script has
# write permissions to it.
BACKUP_BASE_DIR="/hana/backups/automated"
# Specify the type of backup to perform on script execution.
# Options are:
# 'schema' - Performs only the schema export.
# 'tenant' - Performs only the tenant data backup.
# 'all' - Performs both the schema export and the tenant backup.
BACKUP_TYPE="all"
# --- Target Identifiers ---
# The name of the schema to be exported when BACKUP_TYPE is 'schema' or 'all'.
SCHEMA_NAME="MYSCHEMA"