Backing up SAP HANA with Veeam Backup and Replication

Knowledge Base

Backing up SAP HANA with Veeam Backup and Replication


Icons/System/eye-open Created with Sketch. 67 Views 17.09.2024 Cloud / SAP HANA on Private Cloud

Objective

This guide provides instructions for backing up SAP HANA databases using Veeam Backup and Replication 12.2 and the Veeam Plug-in for SAP HANA.

Veeam Enterprise Plus with OVHcloud allows you to use Veeam Backup and Replication 12 within your OVHcloud infrastructure and benefiting from a Veeam Enterprise Plus licence.

Requirements

  • A SAP HANA database has been installed.
  • A Windows server that will host the solution Veeam Backup and Replication.
  • A storage space that will host the backups.
  • The firewall openings have been made, allowing communication between your servers.

Instructions

1 - Installation of Veeam Backup and Replication

If you want to be guided through the installation of Veeam Backup and Replication on your Windows server, our guide outlines all the necessary steps.

2 - Configuration of the Backup Repository

After installing Veeam Backup and Replication on your Windows server, you need to configure the Backup Repository.

A Backup Repository is a storage space where Veeam Backup and Replication hosts the backups.

At this stage, two scenarios can occur:

2.1 - Configuration of the Backup Repository for non-SecNumCloud needs

In this configuration, you can use a storage space, as well as an Object Storage to secure the backups in another OVHcloud region.

2.1.1 - Creation of the Backup Repository

Open the Veeam Backup and Replication console, select Backup Infrastructure, then Backup Repositories.

Click on Add Repository to start the configuration assistant.

backup_repository_1

Select Direct attached storage or Network attached storage, depending on your situation.

  • Direct attached storage allows you to add a physical or virtual server as storage without NFS or SMB protocols.
  • Network attached storage allows you to add a file share via NFS or SMB (CIFS) protocols.

backup_repository_2

You will be guided through the steps of configuring the connection to the storage space, such as the IP address or the full name (FQDN) of your server, or the path where you want to store your SAP HANA backups.

Find detailed steps in the Veeam Backup and Replication 12 User Guide for different configurations:

Your Backup Repository is now visible in the Veeam Backup and Replication console and ready to use with backup configurations.

You can go further in configuring this Backup Repository by setting access permissions for a specific user or a group of users, and by encrypting the backups that will be hosted in this Backup Repository. Find more information on this in the Veeam Backup and Replication 12 User Guide.

If you do not wish to proceed with the creation of a Backup Repository Object Storage, make sure to configure the permissions for that Backup Repository. You can then continue with the chapter Installation of Veeam Plug-in for SAP HANA.

backup_repository_3

2.1.2 - Creation of Backup Repository Object Storage (optional)

This Backup Repository will be used to secure your backups on a secondary storage space, which can be hosted on a second OVHcloud region.

To discover the steps to create an Object Storage bucket, please refer to the detailed steps in our guide.

Open the Veeam Backup and Replication console, select Backup Infrastructure, then Backup Repositories.

Click Add Repository to start the configuration assistant.

backup_repository_s3_1

Select Object storage.

backup_repository_s3_2

Select S3 Compatible.

backup_repository_s3_3

Give a name to your Object Storage Repository.

backup_repository_s3_4

Enter the Service point which corresponds to the Object Storage endpoint, as well as the region (in lowercase) of your Object Storage.

Add the credentials of the Object Storage user who has the Administrator role on this Object Storage. This includes the access key and the secret key of the Object Storage user associated with the Object Storage. Find more information about the Object Storage user in this guide.

backup_repository_s3_5

Indicate the name of the Object Storage bucket where you want to store your SAP HANA backups.

You must also indicate or create a directory in this Object Storage bucket.

backup_repository_s3_6

Your S3-compatible Backup Repository is now visible in the Veeam Backup and Replication console and can be used by backup configurations.

backup_repository_s3_7

2.1.3 - Creation of Scale-out Backup Repository (optional)

Creating a Scale-out Backup Repository will secure your backups deposited in your first Backup Repository by copying them to your second Backup Repository without any action required from you.

Open the Veeam Backup and Replication console, select Backup Infrastructure, then Scale-out Repositories.

Click Add Scale-out Repository to start the configuration assistant.

sbr_no_snc_1

Give a name to your Scale-out Backup Repository.

sbr_no_snc_2

Click Add and select your previously created Backup Repository.

sbr_no_snc_3

Select the desired location policy. We recommend the Data locality policy.

sbr_no_snc_4

Check Extend scale-out backup repository capacity with object storage, then select the previously created Backup Repository Object Storage.

Check the Copy backups to object storage as soon as they are created option to replicate the backups from the first Backup Repository to the second Backup Repository immediately after their creation. This configuration provides quick protection for your backups.

sbr_no_snc_5

By default, no access is allowed to this Scale-out Repository.

Select your Scale-out Repository and click Set Access Permissions.

sbr_no_snc_6

You have the option to allow all user accounts to use this Scale-out Repository or limit it to a defined list. We recommend allowing only the necessary accounts.

sbr_no_snc_7

On your Object Storage bucket, a hierarchical structure has been generated and configured by Veeam Backup and Replication.

sbr_no_snc_8

Once these steps are completed, you can continue this guide with the chapter Installation of Veeam Plug-in for SAP HANA.

2.2 - Configuring a Backup Repository for SecNumCloud needs

In this configuration, the storage space must also be hosted on a SecNumCloud-qualified infrastructure.

2.2.1 - Creation of a Backup Repository

Open the Veeam Backup and Replication console, select Backup Infrastructure, then Backup Repositories.

Click on Add Repository to start the configuration assistant.

backup_repository_1

Select Direct attached storage or Network attached storage, depending on your situation.

  • Direct attached storage allows you to add a physical or virtual server as storage without NFS or SMB protocols.
  • Network attached storage allows you to add a file share via NFS or SMB (CIFS) protocols.

backup_repository_2

You will be guided through the steps of configuring the connection to the storage space, such as the IP address or the full name (FQDN) of your server, or the path where you want to store your SAP HANA backups.

Find detailed steps in the Veeam Backup and Replication 12 User Guide for different configurations:

Your Backup Repository is now visible in the Veeam Backup and Replication console and ready to use with backup configurations.

You can go further in configuring this Backup Repository by setting access permissions for a specific user or a group of users, and by encrypting the backups that will be hosted in this Backup Repository. Find more information on this in the Veeam Backup and Replication 12 User Guide.

backup_repository_3

For more information on configuring Backup Repositories, please refer to the Veeam Backup and Replication documentation.

The Object Storage solution is not currently qualified as SecNumCloud-compliant and cannot be used to host backups in a SecNumCloud context.

If you wish to secure your backups on a second Backup Repository, please repeat this step. Continue with the guide at the step Installation of Veeam Plug-in for SAP HANA, and then follow the chapter Creation of the Backup Copy job.

2.2.2 - Creation of the Backup Copy job (optional)

A Backup Copy job allows you to duplicate backups from one Backup Repository to another, ensuring the security of these backups on a separate storage location. This operation is useful for protecting critical data from loss or corruption by keeping a copy on a remote backup site. With this feature, you can configure advanced backup strategies to ensure the resilience and availability of your data in the event of a disaster.

Ports tcp/2500-3300 must be open between Backup Repositories.

Open the Veeam Backup and Replication console, select the Home menu, Backup Copy, then Application-level backup....

backup_copy_1

Give a name to your Backup Copy job.

backup_copy_2

Add either the Backup jobs that manage your SAP HANA database backups or the Backup Repository where they are stored.

In this guide, we have chosen to use the Backup job.

backup_copy_3

Select your second Backup Repository that will host the backup copies.

Review the available settings in the Advanced menu.

backup_copy_4

Configure the replication slots if desired. By default, a copy is triggered as soon as a backup is made.

backup_copy_5

Your Backup Copy job is now operational.

backup_copy_6

3 - Installation of Veeam Plug-in for SAP HANA

The installation of Veeam Plug-in for SAP HANA can be accomplished using one of the following two methods:

  • The "Standalone Mode" method involves a manual installation using the binary extracted from the Veeam Backup and Replication ISO on the server hosting the SAP HANA database. This method offers limited functionality through the Veeam Backup and Replication console.
  • The "Managed Mode" method is an automated installation performed via the Veeam Backup and Replication console, allowing for the use of several features such as scheduling a backup job.

For the purposes of this documentation, we will use the "Managed Mode" method in order to use all the features provided by Veeam.

3.1 - Creation of a Protection Group

The creation of a protection group is a prerequisite for the installation of Veeam Plug-in for SAP HANA in Managed Mode.

Open the Veeam Backup and Replication console, select Inventory, then Physical Infrastructure.

Click on Create Protection Group.

pg_hana_1

Click on Individual computers.

pg_hana_2

Name your protection group. Then click on Next.

pg_hana_3

Add the desired SAP HANA databases to this protection group. For example, you can group your production databases.

For security reasons, it is recommended to create a dedicated Linux account for the Veeam connection to your server instead of using the root account.

pg_hana_4

Configure the protection group scan frequency.

Check Install application plug-ins. Click on Configure, then check SAP HANA.

Click on Next to proceed.

pg_hana_5

The protection group creation begins, a first scan is launched on the SAP HANA database(s) you previously added, and the Veeam Plug-in for SAP HANA installation along with its dependencies starts.

pg_hana_6

3.2 - Creating the backup job

Following the installation of Veeam Plug-in for SAP HANA in Managed mode, we are now able to create a backup job and manage its scheduling via the Veeam Backup and Replication console.

Open the Veeam Backup and Replication console, select the Home menu, Backup job, Application, then SAP HANA.

bj_hana_1

Give a name to your SAP HANA backup job. Then click on Next.

bj_hana_2

Select your SAP HANA databases, as well as the associated TENANTs (SYSTEMDB and/or TENANTDB) that you want to manage with this backup job. Then click on Next.

bj_hana_3

Select the Backup repository where you want to store your SAP HANA backups. You also have the option to manage the retention of backups in this Backup repository. However, retention does not delete backups in the SAP HANA backup catalog.

Click on Advanced... in order to schedule full backups, select the type of incremental or differential backups. In the SAP HANA tab, you have the possibility to configure the number of channels to optimize the speed of SAP HANA backups.

Click on Next to continue.

bj_hana_4

Configure the OS and SAP HANA database credentials. Then click on Next.

For security reasons, it is recommended to create a Linux user dedicated to connecting Veeam to your server instead of using the root account. The same applies to the account allowing connection to the SAP HANA database, this account only needs backup privileges.

bj_hana_5

You have the option to manage log backups either by the SAP HANA mechanism or by Veeam. By choosing log backup management via Veeam, you get detailed information about log backups in the Veeam Backup and Replication console.

In this guide, we have chosen to use management via Veeam to present the feature to you.

Click on Next to continue.

bj_hana_6

Configure the scheduling of the backup job execution. Then click on Apply.

bj_hana_7

Make sure to check Enable the backup policy when I click Finish to activate the backup job. Click on Finish to complete the configuration of the backup job.

bj_hana_8

We recommend applying the following settings to your SAP HANA database:

You can now run a backup of your SAP HANA database to ensure that your configuration works as desired.

To do this, simply go to the Home menu, select Jobs then Applications, then select your backup job and click on Full. This will launch a full backup of the SAP HANA databases configured in this backup job.

You can follow the progress of the backup job.

full_backup

When performing log backups, you have the option to access detailed information.

log_backup

If you have configured a Scale-out Repository with an Object Storage bucket, you can observe your backups on your Object Storage bucket.

sbr_s3

If you are in a SecNumCloud context and want to secure your backups on a second backup repository, configure a Backup Copy job.

If you want to learn about all the possibilities with Veeam Plug-in for SAP HANA, we recommend consulting the Veeam documentation.

4 - Restoration

To restore your SAP HANA database from a backup taken with Veeam Backup and Replication, you can perform the following steps from the Veeam Backup and Replication console and Veeam Explorer for SAP HANA.

The following ports must be open between your Veeam Backup and Replication server and your SAP HANA database:

  • SAP Host Agent HTTP – tcp/1128
  • SOAP HTTP - tcp/5<NN>13

If you want to perform communication via the HTTPS protocol, the ports are:

  • SAP Host Agent HTTPS - tcp/1129
  • SOAP HTTPS - tcp/5<NN>14

Open the Veeam Backup and Replication console, select Home, Backups, Disk, then click on Restore from SAP HANA backups... by right-clicking the backup of your SAP HANA database.

hana_recover_1.png

The Veeam Explorer for SAP HANA application opens and allows you to restore either the SYSTEMDB or the TENANTDB of your SAP HANA database. All restoration modes are available:

You will be guided through the restoration steps based on the mode you select.

hana_recover_2.png

The restoration of your SAP HANA database is executed. You have the possibility to follow the progress of the restoration via Veeam Explorer for SAP HANA.

Once the restoration is completed successfully, your database is started.

hana_recover_3.png

Go further

If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project.

Join our community of users.

Related articles