Upload
jayanth
View
70
Download
2
Embed Size (px)
Citation preview
SAP Note
Header Data
Symptom
You would like to schedule database backups of SAP HANA Database including back up of the database configuration files using the Linux cron daemon or other scheduling tools.
Other Terms
HANA Backup
Reason and Prerequisites
A complete backup of SAP HANA Database includes the data backup and in addition a backup of the configuration files. A standard functionality to combine data and configuration backup is not provided as part of SAP HANA Database
Solution
The attachment to this SAP Note contains a linux shell script (bash) that demonstrates how one can create data and configuration backups of SAP HANA Database from the linux command line. If parameterized appropriately, this linux shell script can be used for scheduling database backups e.g. via the Linux cron daemon. The second attachment to this SAP Note contains a detailed description of the shell script, including all command line options and adjustable parameters. Features of the shell script (partial):
l Create data backup and / or configuration file backup
l Fully configurable backup target locations
l Either write backup to files with unique file names per day of the week (i.e. keep backup files for one week, then files are being overwritten); or into a user configurable file name
l Statistics collection of backup size and time to execute backup in a csv file on the database server.
l Using the secure hdbuserstore for authetication against SAP HANA Database
l As of version 3 (June 2013), the script also handles copies of the backup catalog as described in SAP Notes 1812980 and 1852242.
For full details see the attached documentation file. Please note: the script is only intended to demonstrate how backup control could be implemented. The responsibility to implement a backup solution appropriately lies with the implementation team. The script is also not intended to replace other scheduling mechanisms for database backups of SAP HANA Database such as the scheduling calendar of dbacockpit.
Validity
1651055 - Scheduling SAP HANA Database Backups in Linux
Version 3 Validity: 12.06.2013 - active Language English
Released On 12.06.2013 16:10:26 Release Status Released for Customer Component HAN-STD-ADM-DBA SAP HANA Database Administration and Monitoring
HAN-DB-PER SAP HANA Database Persistence
Priority Recommendations / Additional Info Category Consulting
Software Component From Rel. To Rel. And Subsequent
HDB 1.00 1.00
Other Components
References
This document refers to:
SAP Notes
This document is referenced by:
SAP Notes (3)
Attachments
1852242 Confusion about file-based backup catalog naming 1812980 Changes to the backup catalog as of Revision 45 1642148 FAQ: SAP HANA Database Backup & Recovery
1852242 Confusion about file-based backup catalog naming 1642148 FAQ: SAP HANA Database Backup & Recovery 1812980 Changes to the backup catalog as of Revision 45
File Name File Size (KB) Mime Type
backup_script_documentation.pdf 935 application/pdf
backup.zip 9 application/x-zip-compressed