Veeam Backup & Replication Best Practice Guide
SAP HANA
For a consistent and supported SAP HANA backup with Veeam you must use the SAP HANA Backint interface. You can extend your restore capabilities of HANA systems by adding an image-level backup of your HANA system (VM or physical) to your Backint-based database backup.
Image-level backups
You can leverage the SAP HANA pre- and post-scripts to create a consistent HANA database snapshot before taking an image-level VM/physical backup. These snapshots do not verify the consistency of the database at the block-level though, so you should not rely on them alone. Image-level backups are great to extend your possibilities for restores. Some use cases include restoring from a complete system loss or providing a test-machine based on the latest backup via Instant VM Recovery. These can be combined with technologies like storage snapshots to achieve very low RTOs.
The database snapshot taken during the pre-script process will be visible as a restore point in the native HANA tools, though it will only be available from the image-level backup, as the post-script deletes this snapshot again from the productive system.
These backups are typically managed and leveraged by the infrastructure or backup team.
Veeam Plug-In for SAP HANA (Backint)
Backups taken via the Backint interface with the Veeam Plug-In for SAP HANA will be checked for consistency and are fully supported by SAP. The Plug-In can operate in standalone or managed mode. In standalone mode, backups are run with native SAP HANA tools such as HANA Studio, HANA Cockpit, or SQL scripts. All restores are supported through the native SAP HANA tooling and the Veeam Explorer for SAP HANA.
Log backups via Backint are supported and recommended. In standalone mode, configure them with the native tools. In managed mode, they can be controlled either by SAP HANA or by the application backup policy.
These backups support restore scenarios such as system copy, restore to another server, and point-in-time recovery.
When backup administrators are responsible for SAP HANA backups, they typically use the Veeam Plug-In in managed mode. When DBAs manage backups, they typically use standalone mode. Recovery is usually handled by DBAs, who generally use their preferred SAP HANA tools for the task.
Please review the general Enterprise Plug-In best practices as well.
Veeam Sizing
Important for sizing is the number of channels being used in parallel as well as the expected backup throughput. Channels are important to estimate SAP HANA resources for backup in general, not specific to Veeam. In large environments, consider that restores may be needed while backups of databases A and B are running.
Please refer to General Plug-In Design Best Practices and the Resource Planning - Veeam Backup & Replication User Guide section in the Veeam Help Center to size your Veeam Backup & Replication and repository servers, as well as the required resources on the database server.
SAP HANA configuration (global.ini)
For SAP HANA Backint, most configuration items reside in a database configuration file called global.ini. Inside it is a backup section with self-explanatory parameters but you may consult the SAP HANA Administration Guide, if needed.
Which ones are important for Veeam backups?
catalog_backup_using_backint
This determines if the catalog backup will be written to a local disk or to the Veeam repository. We recommend setting this to
trueto have the latest catalog version available with the backups in the Veeam repository.
parallel_data_backup_backint_channels
This determines how many channels will be used to write the data to a Veeam repository. The HANA service must be greater than 128GB of data (not RAM) to use parallel channels. The maximum number of channels is 32, but we encourage you to be cautious. As a rule of thumb, use as many channels as needed for performance and as few as possible to limit resource usage. A recommended approach would be to start with as few as two or as many as four and double it per run to gauge the impact on the total time needed for the backup and restore to run. You should expect to see the time for the backup to complete change in a linear fashion. If not, you may be leveraging too many channels, consuming significant and valuable resources on the HANA instance and the Veeam repository. This can impact overall Backint performance.
In managed mode, the number of channels is defined in the application backup policy, which writes the value to
global.ini. Change it in the policy, not inglobal.inidirectly.
data_backup_buffer_size
Adjust this according to the configured number of channels. Consult the SAP HANA admin guide for details.
Other parameters should be set based upon guidance from SAP and/or Veeam support, as they are dependent upon specific elements within your environment and architecture. For example, larger systems may require you to change the backint_response_timeout parameter to a higher value, possibly in conjunction with the log_backup_interval_mode. Both parameters influence how log backups are written into Backint.
References
- BP Guide - General Enterprise Plug-In Best Practices
- BP Guide - Supplemental information to SAP HANA backups
- Veeam Help Center - Veeam Plug-In for SAP HANA
- SAP - HANA Administration Guide
- SAP - HANA Database Backup and Recovery
- Veeam Explorer for SAP HANA
- Veeam Blog Post Series - Protect your SAP HANA database