Skip to main content
  1. Blog/

Veeam Plugin SAP HANA

·1258 words·6 mins·
Author
Marco Escobar
Data protection, Kubernetes, cybersecurity and AI. Hands-on guides from the trenches: Veeam, Kasten, VMware, Oracle, cloud, and whatever I’m breaking in the homelab this week.
Table of Contents
Veeam Plugin SAP HANA - S A P Hana Plugin

It is now the turn of another plugin, Veeam for SAP HANA. It is very simple to deploy and configure in SAP HANA, and in this post we will cover installation, configuration, backup scheduling from SAP HANA, and of course data recovery.

Initial Steps
#

First, as always, we should review the official Veeam Plugin for SAP HANA documentation to confirm the supported versions:

https://helpcenter.veeam.com/docs/backup/plugins/system_requirements_saphana.html?ver=100

We already know that Veeam supports backing up our SAP HANA through the plugin, which is a “Backint” interface. Because it requires vendor certification, in this case from SAP HANA, for it to work correctly, we can check that certification here:

https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=451067853

Installation
#

Now that we have all of the information above, we need to install the plugin on the SAP HANA server. We will mount the Veeam Backup & Replication v10a ISO and copy the plugin VeeamPluginforSAPHANA-10.0.1.4854-1.x86_64.rpm, for example with WinSCP:

Veeam Plugin SAP HANA - upload plugin

After that, we connect to the server via SSH, either as the “root” user or as the application user that has sudo permissions. In my case, I will use “hxeadm”.

Always remember that Veeam plugins are installed as root and configured with the application user.

So we will install the plugin with the following command:

sudo rpm -ivh VeeamPluginforSAPHANA-10.0.1.4854-1.x86_64.rpm

```json



Veeam Plugin SAP HANA - plugin installation on HANA
## Configuration After installation, the Veeam Plugin for SAP HANA will tell us to run the following command: ```text Run "SapBackintConfigTool --wizard" to configure the Veeam Plug-in for SAP HANA ```bash Here we run the command we were given, without sudo and as the application user, in my case hxeadm, and we enter the parameters it asks for:
Veeam Plugin SAP HANA - plugin configuration on HANA
As shown in the previous image, it only asks for the details of our Veeam Backup & Replication and the repository we will use for backups. Remember that if a repository does not appear, you must grant it access in the repository properties under the "Access Permissions" menu:
Veeam Plugin SAP HANA - veeam access permissions
The plugin is now configured on the SAP HANA server. To validate the configuration, we can review the backup menu in SAP HANA Studio, for example:
Veeam Plugin SAP HANA - screenshot 1
Where we will see: ```text Backint Agent: /opt/veeam/VeeamPluginforSAPHANA/hdbbackint

This is the path where the configuration files and the Backint interface live. In the “Log Backup Settings” section, it is recommended to set them to “Backint” rather than “File”, since this way we send both the backups and the database logs to the Veeam repository.

All that is left is to run the SAP HANA backup from SAP HANA Studio, since that is the way backups should be performed in order to keep SAP support.

Veeam Plugin SAP HANA - screenshot 2

We select the database we want to back up and then choose the backup type we need, Full, Differential or Incremental, and of course the destination type, which must be backint:

Veeam Plugin SAP HANA - screenshot 3

Then we click “Next” and “Finish” to watch the backup status, which we can also monitor in Veeam Backup & Replication:

Veeam Plugin SAP HANA - screenshot 4
Veeam Plugin SAP HANA - screenshot 5

And just like that, we are already backing up SAP HANA to the Veeam repositories through the Veeam Plugin for SAP HANA.

Scheduling
#

Here we get to the question we are always asked:

How do you schedule SAP HANA backups?

To answer that question, there are several ways to schedule backups, for example:

  • Veeam Agent for Linux schedule
  • Control-M
  • Operating system native tools
  • SAP HANA Cockpit
  • Many more…

As I mentioned before, there are several ways to schedule SAP HANA backup runs using the Veeam Plugin for SAP HANA. One of the most common is to integrate it with Veeam Agent for Linux to back up SAP HANA configuration files and run the backup script, setting it up together with a protection group as we saw in the Veeam Oracle Linux post:

Veeam Agent Linux - Oracle Linux / Exadata

https://www.24xsiempre.com/veeam-agent-linux-oracle-linux-exadata/embed/#?secret=C1mhSzALCO

Now we are going to look at another way to schedule backups, directly from SAP HANA, using the SAP HANA Cockpit tool. But before scheduling backups, let’s review some advanced SAP HANA backup settings. In the SAP HANA configuration, under the Backup section, you can change the following variables:

  • data_backup_buffer_size
  • parallel_data_backup_backint_channels

These allow the backup to run across multiple streams with the memory buffer recommended as best practice by SAP HANA. Make sure you have enough memory resources. If you want to review these parameters, the information is available in the following SAP links:

https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.04/en-US/5c6a0d4a81db4eebba7f5b2620d53a63.html?q=data_backup_buffer_size

https://help.sap.com/viewer/6b94445c94ae495c83a19646e7c3fd56/2.0.04/en-US/18db704959a24809be8d01cc0a409681.html

In this case we entered 4 streams and a 2048 MB buffer (512 MB per stream):

Veeam Plugin SAP HANA - screenshot 6

It is very important to review these points with your SAP HANA DBA or your technology partner, since they are system-level settings that need to be validated. Even so, in this post we are using information taken directly from the SAP HANA manual. Additionally, if you want to add advanced features or back up the catalog, you also need to involve the DBA.

We will now return to SAP HANA Cockpit ( link), which lets us run backups natively integrated with the Veeam Plugin for SAP HANA. To reach the SAP HANA Cockpit web interface, in my case the address is https://hxehost:51045/cockpit#Shell-home:

Veeam Plugin SAP HANA - screenshot 7

When we open the instance we want to back up, we will see a backups widget:

Veeam Plugin SAP HANA - screenshot 8

If we click on “Backup Schedules”, we can access the SAP HANA backup configuration and see a summary of the backup types already made or still pending. Then we click the " +" icon to add a backup schedule:

Veeam Plugin SAP HANA - screenshot 9

We select “Schedule a Series of Backups” to move to Step 2 and enter the backup name:

Veeam Plugin SAP HANA - screenshot 10

Moving to step 3, “Backup Settings”, we configure the backup type:

Veeam Plugin SAP HANA - screenshot 11

In “Backup Settings”, the key setting is the backup type, and we will use “Backint” to send our backups to the Veeam Backup & Replication repository through the Veeam Plugin for SAP HANA. Next we select how often the backup will run:

Veeam Plugin SAP HANA - screenshot 12

And finally, at what time and on which days we need the backup to run:

Veeam Plugin SAP HANA - screenshot 13

We enter the time zone, the backup run time, the days it runs, and finally when to activate the backup task. Lastly, we save the changes with “Save Schedule”:

Veeam Plugin SAP HANA - screenshot 14

We return to the home page, where the schedule will appear:

Veeam Plugin SAP HANA - screenshot 15

It will run at the time we configured:

Veeam Plugin SAP HANA - screenshot 16

We will also see the task run in Veeam Backup & Replication:

Veeam Plugin SAP HANA - screenshot 17

In SAP HANA Studio we can also see the backups that were made:

Veeam Plugin SAP HANA - screenshot 18

Now we will look at recovery. You can do it either from SAP HANA Cockpit or from SAP HANA Studio. In this case we will use the traditional method of recovering a database from SAP HANA Studio using the backups in Veeam Backup & Replication:

Veeam Plugin SAP HANA - screenshot 19

Recovery
#

As we saw in the previous images, we can now easily recover SAP HANA databases from SAP HANA Studio. We go to the console and select the following:

Veeam Plugin SAP HANA - screenshot 20

SAP HANA then tells us that to recover a database, in this case SYSTEM, the services must be stopped:

Veeam Plugin SAP HANA - screenshot 21

We wait for the services to stop:

Veeam Plugin SAP HANA - screenshot 22

And then we can recover the database, for example to the most recent state:

Veeam Plugin SAP HANA - screenshot 23

We click Next, and when we reach the following screen, we select a backup and click “Check Availability”:

Veeam Plugin SAP HANA - screenshot 24

Then continue to the end:

Veeam Plugin SAP HANA - screenshot 25

And click “Finish” to wait for the recovery:

Veeam Plugin SAP HANA - screenshot 26

We will also see the recovery as a running task in Veeam Backup & Replication:

Veeam Plugin SAP HANA - screenshot 27

That wraps up this post on the Veeam Plugin for SAP HANA, protecting your environments using tools already available in the solution. All suggestions are welcome!

Related posts#