Hello,
I'm trying to schedule Hana's backups.
First of all, I'm trying to execute with the sample script.
#!/bin/bash
# SAP HANA Backup
# define backup prefix
TIMESTAMP="$(date +\%F\_%H\%M)"
BACKUP_PREFIX="SCHEDULED"
BACKUP_PREFIX="$BACKUP_PREFIX"_"$TIMESTAMP"
# source HANA environment
. /usr/sap/shared/DB1/HDB01/hdbenv.sh
# execute command with user key
# asynchronous runs job in background and returns prompt
hdbsql -U backup_operator "backup data using file ('$BACKUP_PREFIX') ASYNCHRONOUS"
I've tried to execute the script directly but Im getting error -bash: ./backup_test.sh: Permission denied
How can I execute it?
Thanks