cancel
Showing results for 
Search instead for 
Did you mean: 

Hana scheduled Backups

Former Member
0 Kudos
917

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

Accepted Solutions (1)

Accepted Solutions (1)

lbreddemann
Active Contributor
0 Kudos

Have you set up the file permissions correctly?

I assume you are using the script from SAP note

1651055

Scheduling SAP HANA Database Backups in Linux

correct?

The note has a full documentation PDF file attached that explains - with examples - how to use the script.

- Lars

Former Member
0 Kudos

Answers (0)