add compression to backup

This commit is contained in:
2025-09-09 17:21:49 +02:00
parent 1d9a933b73
commit 17ed3b8e9d
2 changed files with 79 additions and 31 deletions

View File

@@ -11,7 +11,6 @@ HDBSQL_PATH="/usr/sap/hdbclient/hdbsql"
# 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.
@@ -26,6 +25,13 @@ BACKUP_BASE_DIR="/hana/backups/automated"
# '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 ---