File-based SAP HANA Backup
File-based SAP HANA backup can be applied to production or non-production systems. You can use SAP HANA Studio, SAP HANA SQL statements or SAP HANA Cockpit to back up files in data or log volume of SAP HANA to HUAWEI CLOUD EVS disks or SFS file systems and then upload the backup files to HUAWEI CLOUD OBS buckets using tools, APIs, or SDK.
The following figure shows an example of how to perform full backup for tenant database using SAP HANA 2.0.

For file-based SAP HANA backup, you need to specify a directory to store backup files and obtain the write permission for user <sid>adm. The backup directory in this example is /hana/backup.
Consistency Check for Backup Files
- For details about the requirements for checking the consistency of backup files, see SAP Note 1977584.
- For details about the table consistency check of SAP HANA, see the Table and Catalog Consistency Checks on the SAP Help Portal page.
- SAP provides two tools for manually checking the consistency of backup files:
- hdbbackupdiag
- hdbbackupcheck
SAP HANA Backup Scenarios
On HUAWEI CLOUD, you are advised to use the SFS file systems as backup directories for SAP HANA. SAP HANA deployment has following scenarios:
- Scenario 1: Single-node deployment without system replication configured
In this scenario, SFS file systems can be used to store backup files. To ensure a higher SLA level, you need to regularly upload backup files to OBS buckets.
When a fault occurs, the system restores data using backup files in the backup directory. If the backup files are abnormal in the backup directory, you can download backup files from OBS buckets to the backup directory for the data restoration.
Figure 1 System replication not configured
- Scenario 2: Single-node deployment with system replication configured in the same AZ
In this scenario, the primary and secondary SAP HANA systems share a backup directory. Only the primary SAP HAHA system regularly backs up files when services are running properly. To ensure a higher SLA, you need to upload backup files to OBS buckets regularly.
When the primary SAP HANA system is faulty, the secondary SAP HANA system takes over the backup files in the SFS file system. If the backup files are abnormal in the backup directory, you can download backup files from OBS buckets to the backup directory for the data restoration.
Figure 2 System replication configured in the same AZ
- Scenario 3: Single-node deployment with cross-AZ system replication configured
In this scenario, cross-AZ system replication is configured for SAP HANA. SFS file systems can be attached to SAP HANA systems in different AZs.
The primary and secondary SAP HANA systems share a backup directory. When the primary SAP HANA system is faulty, the secondary SAP HANA system takes over the backup files in the SFS file system. If the backup files are abnormal in the backup directory, you can download backup files from OBS buckets to the backup directory for the data restoration.
Figure 3 Cross-AZ system replication configured
The following figure shows the parameter settings for the backup to SFS file systems attached to SAP HANA systems in different AZs.

Uploading SAP HANA Backup Files to OBS Buckets
Client tools provided by HUAWEI CLOUD OBS, such as obsutil, obsftp, obsfs, and OBS Browser+, can be used to transfer backup files to OBS buckets. In addition, HUAWEI CLOUD provides an example script for uploading SAP HANA backup files to OBS buckets. For details, see section Best Practices for Uploading SAP Backups to the OBS Bucket.
Improving the Performance of Uploading Data to OBS Buckets
You can set the maximum size of backup file and split a large file into small ones to improve the data uploading performance, but it increases the service network load.
For example, Figure 4 shows the upload rate for a backup file of 72 GB before split.

Set the maximum size of the SAP HANA back file to 10 GB.

Figure 5 shows the upload rate after the backup file is split into multiple files.

For details about how to fine-tune obsutil performance, see the Fine-Tuning obsutil Performance.
Last Article: Overview
Next Article: SAP HANA Backup Based on Storage Snapshots
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.