Compare commits
2 Commits
f597ae09aa
...
b801c2c002
| Author | SHA1 | Date | |
|---|---|---|---|
| b801c2c002 | |||
| 80fd12f0f9 |
@@ -12,21 +12,21 @@ HDBSQL_PATH="/usr/sap/hdbclient/hdbsql"
|
|||||||
USER_KEY="CRONKEY"
|
USER_KEY="CRONKEY"
|
||||||
|
|
||||||
# hdbuserstore key for the SYSTEMDB user
|
# hdbuserstore key for the SYSTEMDB user
|
||||||
SYSTEMDB_USER_KEY="SYSTEMDB_KEY"
|
SYSTEMDB_USER_KEY="SYSTEMKEY"
|
||||||
|
|
||||||
# --- Backup Settings ---
|
# --- Backup Settings ---
|
||||||
|
|
||||||
# The base directory where all backup files and directories will be stored.
|
# 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
|
# Ensure this directory exists and that the OS user running the script has
|
||||||
# write permissions to it.
|
# write permissions to it.
|
||||||
BACKUP_BASE_DIR="/hana/backups/automated"
|
BACKUP_BASE_DIR="/hana/shared/backup"
|
||||||
|
|
||||||
# Specify the type of backup to perform on script execution.
|
# Specify the type of backup to perform on script execution.
|
||||||
# Options are:
|
# Options are:
|
||||||
# 'schema' - Performs only the schema export.
|
# 'schema' - Performs only the schema export.
|
||||||
# 'tenant' - Performs only the tenant data backup.
|
# 'tenant' - Performs only the tenant data backup.
|
||||||
# 'all' - Performs both the schema export and the tenant backup.
|
# 'all' - Performs both the schema export and the tenant backup.
|
||||||
BACKUP_TYPE="all"
|
BACKUP_TYPE="tenant"
|
||||||
|
|
||||||
# Set to 'true' to also perform a backup of the SYSTEMDB
|
# Set to 'true' to also perform a backup of the SYSTEMDB
|
||||||
BACKUP_SYSTEMDB=true
|
BACKUP_SYSTEMDB=true
|
||||||
|
|||||||
16
backup/backup.hook.sh
Normal file
16
backup/backup.hook.sh
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This script helps to configure backup.conf
|
||||||
|
|
||||||
|
# Source the backup.conf to get current values
|
||||||
|
source backup.conf
|
||||||
|
|
||||||
|
HDBSQL_PATH_INPUT=$(which hdbsql)
|
||||||
|
|
||||||
|
# Default values if not found
|
||||||
|
HDBSQL_PATH_INPUT=${HDBSQL_PATH_INPUT:-"/usr/sap/hdbclient/hdbsql"}
|
||||||
|
|
||||||
|
# Update backup.conf
|
||||||
|
sed -i "s#^HDBSQL_PATH=\".*\"#HDBSQL_PATH=\"$HDBSQL_PATH_INPUT\"#" backup.conf
|
||||||
|
|
||||||
|
echo "backup.conf updated successfully!"
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
# This script helps to configure monitor.conf
|
# This script helps to configure monitor.conf
|
||||||
|
|
||||||
# Source the monitor.conf to get current values
|
# Source the monitor.conf to get current values
|
||||||
source monitor/monitor.conf
|
source monitor.conf
|
||||||
|
|
||||||
# Check if COMPANY_NAME or NTFY_TOKEN are still default
|
# Check if COMPANY_NAME or NTFY_TOKEN are still default
|
||||||
if [ "$COMPANY_NAME" = "Company" ] || [ "$NTFY_TOKEN" = "tk_xxxxx" ]; then
|
if [ "$COMPANY_NAME" = "Company" ] || [ "$NTFY_TOKEN" = "tk_xxxxx" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user