Backing Up Databases Using SQL Commands or Scripts
You can use HDBSQL to backup and restore SAP HANA databases using Backint. For details on the HDBSQL backup, see the BACKUP DATA Statement section of the SAP HANA SQL and System Views Reference.
The following example shows how to configure secure storage of SAP HANA connection data and provides a list of options for the SAP HANA database backup process.
Prerequisites
Before the backup process, you can use the HDBUSERSTORE tool to set secure storage of SAP HANA connection details.
Log in to SAP HANA HDBSQL as the operating system administrator (<sid>adm) run the following commands. For details, see the Secure User Store section of the SAP HANA Security Guide.
sh4adm@linux-q0pn:/usr/sap/SH4/HDB01> hdbuserstore SET <key> hostname:30013@SID <username> <password> sh4adm@linux-q0pn:/usr/sap/SH4/HDB01> hdbsql -U <key> |
Backing Up SAP HANA Databases Using Backint
To back up the database with Backint, use one of the following commands depending on which type of backup you want to perform:
- Full backup of SYSTEMDB
- Differential backup of SYSTEMDB
- Incremental backup of SYSTEMDB
- Full backup of a tenant database
- Differential backup of a tenant database
- Incremental backup of a tenant database
- Full backup of a tenant database with the ASYNCHRONOUS option. The ASYNCHRONOUS option can be helpful if you monitor SAP HANA backups on another host and just want to run the backup command from a script. The option runs the backup job in the background and closes the current script session.