SAP HANA

SAP HANA provides native tools to back up the SAP HANA database. These tools are available for SAP HANA users and backup vendors to take SAP HANA backups according to SAP standards.

Veeam provides the following options to protect SAP HANA in a consistent way:

Type Veeam Solution
Virtual machine running SAP HANA database Veeam agentless image-level VM backup with pre-freeze/post-thaw scripts
Physical server running SAP HANA database Veeam Agent for Linux backup with pre-freeze/post-thaw scripts
SAP HANA database backup with Backint Veeam Plug-In for SAP HANA (managed or standalone mode)
SAP HANA file-based backup to NFS Veeam Application Backup Repository

Image-level backups and Backint backups are not mutually exclusive. A common design is an image or file-level backup of the whole system (OS, binaries, configuration) or important files combined with Veeam Plug-In for SAP HANA for database and log backups.

Backup Options and Tools

SAP HANA provides native tools to back up and restore SAP HANA databases:

Backint API

The Backint method is an API-based method - it is generally referred to as SAP HANA backup using a third-party utility. It enables third-party tool vendors to directly connect their backup agents to the SAP HANA database. Backups are transferred via pipe from the SAP HANA database to the third-party backup agent, which runs on the SAP HANA database server and then sends the backups to the third-party backup repository. A huge advantage of using the Backint API is the availability of multi-channel backups and restores, which can increase the overall performance.

Third-party backup tools can be fully integrated with SAP HANA:

  • Execution of backup and recovery from the SAP HANA cockpit, SAP HANA studio and via SAP HANA SQL commands.
  • Configuration of tool-specific parameters.

The Backint backup can be configured through these options:

  • Third-party backup application
  • Manually in SAP HANA Studio
  • SQL script (manual/external scheduler)
  • SAP HANA Cockpit

The diagram below visualizes the backup operations:

  1. SAP HANA database stores the in-memory data into persistent storage.
  2. From the persistent storage, the third-party agent creates backup streams to the third-party backup target.
  3. The backup is stored on the third-party backup storage.

BackintBackupDiagram

File System Backup

File System Backups write all data to files (for example, an NFS share that is available for all nodes).

You must monitor the file system free space during backup processes.

File System Backups can be configured through these options:

  • Manually in SAP HANA Studio
  • SQL script (manual/external scheduler)
  • SAP HANA Cockpit
  • Log backup can be configured to run automatically

The diagram below visualizes the backup operations:

  1. SAP HANA database stores the in-memory data into persistent storage.
  2. From the persistent storage, File System Backup stores the backup files to external storage.

FileBackupHana

Application Backup Repository as NFS target

A Veeam Infrastructure Appliance in Hardened Repository mode can provide an Application Backup Repository (ABR). ABR turns local storage into a pool of virtual volumes, each exposed as its own NFS share. SAP HANA writes its native file-based data and log backups to this share as it would to any other NFS target. Veeam creates scheduled, immutable (ZFS-based) snapshots of the share and registers them as restore points.

This addresses the main weakness of a plain NFS target: the backup files are no longer stored on an unprotected share.

HANA Storage Snapshot

Storage snapshots are the fastest option to safeguard the SAP HANA database with minimal performance overhead. The SAP HANA database must be online for a storage snapshot backup.

The diagram below visualizes the backup operations:

  1. SAP HANA database stores the in-memory data into persistent storage.
  2. Prepare for a storage snapshot by initiating the SAP HANA snapshot. During this process, the internal database snapshot is created and reflects a consistent database state at the point in time it is created in the file system.
  3. The storage snapshot is created based on the internal database snapshot.
  4. Confirm the SAP HANA snapshot.

Note: Since SAP HANA 2.0 SPS 04, data snapshots are supported for multitenant database containers. The snapshot always covers the system database and all tenant databases together.

A storage snapshot that stays on the production storage is not a backup. The Veeam image-level backup (see How application backups work in Veeam Backup & Replication) uses this mechanism and moves the snapshot content to a Veeam repository.

HANAStorageSnap

Advantages and Disadvantages

Backint Backup

Advantages Disadvantages
Integrity checks at block level Additional network and system load
Uses present Veeam backup infrastructure  
Additional backup tool features (e.g. compression, copies, immutability)  
Backups are immediately available for recovery  
Certified by SAP (Veeam Plug-In for SAP HANA)  
  • Backup Size: Payload only
  • Backup Duration: I/O (disk read and write) and network bound

File System Backup

Advantages Disadvantages
Integrity checks at block level Additional network and system load
  Requires additional storage (unless an Application Backup Repository is used)
  Requires file system fill-level monitoring
  Additional time required to make backups available for recovery
  • Backup Size: Payload only
  • Backup Duration: I/O (disk read and write) and network bound

Storage Snapshot

Advantages Disadvantages
Fast No integrity checks at block level
Negligible network load and system load Snapshot on production storage must be copied to a backup target
Encryption (if data volume encryption is active) Point-in-time recovery requires additional log backups
  • Backup Size: Size of data area (but usually compressed or deduplicated by the storage pool)
  • Backup Duration: Negligible

Veeam SAP HANA Backup & Restore

In this section we focus on the options Veeam provides to protect SAP HANA databases.

How the Veeam Plug-In for SAP HANA works

To leverage Backint for SAP HANA backup, use Veeam Plug-In for SAP HANA. Please refer to the How Veeam Plug-In for SAP HANA Works section in the Veeam Help Center to review the process.

Managed vs. standalone mode

Which mode to use is mainly a question of responsibility. If the backup administrator owns SAP HANA protection, normally managed mode is used. If the DBA or SAP Basis team owns it and configures backups on the host, standalone mode is usually preferred.

How application backups work in Veeam Backup & Replication

Image-level backups can be created agentless (VM-based) or with Veeam Agent for Linux. To bring the HANA database to a consistent state within the backup image, you have to use pre-freeze and post-thaw scripts.

The provided SAP HANA pre-freeze/post-thaw scripts are available on GitHub and also support optional transaction log purging.

The backup process is as follows:

  1. Veeam starts the configured pre-freeze script on the HANA system.
  2. The script prepares the HANA database by requesting a database snapshot. All HANA data is consistently written to disk.
  3. When the pre-freeze script has run successfully, Veeam creates a snapshot of the machine to save that consistent state on disk.
  4. Directly after the snapshot is created, the post-thaw script is called to confirm and remove the HANA database snapshot on the live system. Logs are purged when configured.
  5. Veeam backs up the data from the snapshot (read-only data).
  6. When all data is moved to the Veeam repositories (backup done), the volume-level or hypervisor-level snapshot is deleted.

For reading the volumes/disks, Veeam uses Changed Block Tracking (CBT) wherever possible. This speeds up incremental backups even for very large databases when there was only little change.

The image-level backup appears in the SAP HANA backup catalog as a data snapshot. For a point-in-time recovery, the log backups created after this snapshot are required. Only enable log purging in the script if no other log backup (e.g. via Backint) is configured.

Verify Configuration of Backint for Veeam Plug-In

When the plug-in is configured, it creates a soft link in /hana/shared/<SID>/global/hdb/opt.

To verify the Backint configuration, do the following:

  1. Connect to the database using SAP HANA Studio or Cockpit.
  2. Go to Backup/Configuration.
  3. In the Backint Agent field, make sure that the specified path leads to /opt/veeam/VeeamPluginforSAPHANA/hdbbackint.

SAP HANA Backint Settings

It is important to emphasize that:

Veeam does not use any Backint parameter files. Leave these fields empty. If you were running something else before, delete the entries.

Log Backup Settings: This allows you to keep the logs either on your file system or use Backint to forward all new logs directly to the Veeam Backup & Replication repository. We recommend backing them up via Backint, but please discuss this with your SAP Basis engineer. If you change this, do not forget to save your settings by clicking the disk symbol (see screenshot above).

When log backups are sent to Backint, also send the backup catalog to Backint (catalog_backup_using_backint = true, global.ini, section [backup]). Otherwise, the catalog stays on the local file system and can be lost together with the server.


References


Back to top

Copyright © 2026 Solutions Architects, Veeam Software.