40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
# ==============================================================================
|
|
# 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"
|
|
|
|
# Schema can be compressed after exporting, decreasing it's size.
|
|
COMPRESS_SCHEMA=true
|
|
|
|
# Same as COMPRESS_SCHEMA, but for the tenant. This can take a long time.
|
|
# After testing this can save ~80% disk space. Takes around 5-10 minutes
|
|
# for a 40GB tenant.
|
|
COMPRESS_TENANT=true
|
|
|
|
# --- Target Identifiers ---
|
|
|
|
# The name of the schema to be exported when BACKUP_TYPE is 'schema' or 'all'.
|
|
SCHEMA_NAMES="MYSCHEMA"
|