Files
Scripts/backup/backup.conf

44 lines
1.4 KiB
Plaintext

# ==============================================================================
# Configuration for HANA Backup Script (backup.sh)
# ==============================================================================
# Author: Tomi Eckert
# --- Connection Settings ---
# User key name from the hdbuserstore.
# This key should be configured to connect to the target tenant database.
USER_KEY="CRONKEY"
# hdbuserstore key for the SYSTEMDB user
SYSTEMDB_USER_KEY="SYSTEMKEY"
# --- 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/shared/backup"
# 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="tenant"
# Set to 'true' to also perform a backup of the SYSTEMDB
BACKUP_SYSTEMDB=true
# 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"