Configure SAP HANA Logs Cut and Past Backup configuration with Netbackup

Configuration from Netbacup Side

Create New policy for logs backup as below

install netbackup agent in hana server
update host file with netbackup master and media server name
Type :- Standard , User Archive
Add client in selection list
No need to add selection as it is user driven
SAP HANA

1. Create file on hana node
Create file with vi
#more /usr/openv/netbackup/hana_log_list

Add Logs location Logs file location
/hana/shared/HD12/HDB10/backup/log/XX/
/hana/shared/HD12/HDB10/backup/log/XX2/
/hana/shared/HD12/HDB10/backup/log/XX3/
/hana/shared/HQ13/HDB20/backup/log/DB_BQ1
/hana/shared/HQ13/HDB20/backup/log/SYSTEMDB

Create script with vi
#more /usr/openv/netbackup/hana_log_backup.sh
Add below command in above script
/usr/openv/netbackup/bin/bparchive -p (policyname) -s UserArchive -s (Netbackupmasterservername) -f /usr/openv/netbackup/hana_log_list

give full permission

Chmod 777 hana_log_backup.sh
schedule to run every 4 hours
Crontab –e -0 0,4,8,16,20 * * * /usr/openv/netbackup/db2_archive_log_backup.sh

 

To manully start backup run below command
/usr/openv/netbackup/bin/bparchive -p (policyname) -s UserArchive -s (Netbackupmasterservername) -f /usr/openv/netbackup/hana_log_list

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s