---
title: "Install and use OVHcloud Backint Agent for SAP HANA"
description: "This guide provides instructions for installing OVHcloud Backint Agent for SAP HANA and its usage"
url: https://docs.ovhcloud.com/pt/guides/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent
lang: pt
lastUpdated: 2024-09-03
---
# Install and use OVHcloud Backint Agent for SAP HANA

## Objective

This guide provides detailed steps for the installation and usage of OVHcloud Backint Agent for SAP HANA.

OVHcloud Backint Agent for SAP HANA allows you to back up and recover your SAP HANA database on one or many OVHcloud Object Storage buckets.

![one_bucket](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/one_bucket.png)
OVHcloud Backint Agent for SAP HANA has been certified by SAP, you can find certification information here:

- [SAP Certified Solutions Directory](https://www.sap.com/dmc/exp/sap-certified-solutions/#/solutions?search=backint\&id=s:c5927e8a-cf79-40c1-84ad-cdd354554389)
- [SAP Note 2031547](https://me.sap.com/notes/0002031547)
- [SAP Note 3344150](https://me.sap.com/notes/3344150)


***

### OVHcloud Control Panel Access

- **Direct link:** [Public Cloud Projects](https://manager.eu.ovhcloud.com/#/public-cloud/pci/projects)
- **Navigation path:** <code className="action">Public Cloud</code> > Select your project

***


## Requirements

- Access to the <ManagerLink to="/">OVHcloud Control Panel</ManagerLink>.
- [A Public Cloud project](/pt/guides/public-cloud/cross-functional/create-a-public-cloud-project.md) in your OVHcloud account with:
  - An [Object Storage bucket](/pt/guides/storage-and-backup/object-storage/s3-getting-started-with-object-storage.md).
  - An [Object Storage user](/pt/guides/storage-and-backup/object-storage/s3-identity-and-access-management.md#creating-a-user) with the read and write rights.
- A SAP HANA database installed.

## Instructions

:::info
[**Quick access to OVHcloud Backint Agent download URL**](#ovhcloud-backint-agent-for-sap-hana)

:::

### Object Storage

The Object Storage bucket versioning must be enabled to ensure the correct operation of OVHcloud Backint Agent. The versioning allows you to keep several versions of a same object in your Object Storage bucket.

With SAP HANA backups, the versioning allows you to trigger several backups with the same name (for example "COMPLETE\_DATA\_BACKUP") and keeping the capacity to recover a specific version of the backup named "COMPLETE\_DATA\_BACKUP". If the versioning is not enabled, only the latest version of the backup named "COMPLETE\_DATA\_BACKUP" can be recovered.

You can check the versioning status of your Object Storage bucket by following these steps:

1. Log in to the <ManagerLink to="/">OVHcloud Control Panel</ManagerLink>.
2. Click <code className="action">Public Cloud</code> and select your Public Cloud project. Then click <code className="action">Object Storage</code>.
3. Click on the Object Storage bucket that will host backups of your SAP HANA database.
4. Check the value of the <code className="action">Versioning</code> parameter, it must have the value <code className="action">Enabled</code>. If the value of this parameter is <code className="action">Disabled</code>, click on <code className="action">Enable versioning</code>.

| Versioning enabled                                                                                                                                                                      | Versioning disabled                                                                                                                                                                       |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <img className="thumbnail" alt="versioning_enabled" src="/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/versioning_enabled.png" loading="lazy" /> | <img className="thumbnail" alt="versioning_disabled" src="/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/versioning_disabled.png" loading="lazy" /> |

### OVHcloud Backint Agent for SAP HANA

From your SAP HANA server, go to the repository `/usr/sap/<SID>/SYS/global/hdb/opt/` and [download the OVHcloud Backint Agent for SAP HANA archive](https://ovhcloud-backint-agent.s3.rbx.io.cloud.ovh.net/ovhcloud-backint-agent.zip) which contains:

- The usage license of OVHcloud Backint Agent for SAP HANA
- The NOTICE file including copyrights
- The VERSION file
- A configuration file template
- The OVHcloud Backint Agent for SAP HANA binary

To download the archive, you can use the following command:

```bash
wget https://ovhcloud-backint-agent.s3.rbx.io.cloud.ovh.net/ovhcloud-backint-agent.zip -P /usr/sap/<SID>/SYS/global/hdb/opt/
```

The archive `ovhcloud-backint-agent.zip` must be decompressed, you can execute the following command:

```bash
unzip /usr/sap/<SID>/SYS/global/hdb/opt/ovhcloud-backint-agent.zip -d /usr/sap/<SID>/SYS/global/hdb/opt/
```

Now, five files are present in the repository `/usr/sap/<SID>/SYS/global/hdb/opt/`:

- LICENSE
- NOTICE
- VERSION
- hdbbackint.cfg
- hdbbackint

:::info
Take note of the LICENSE file. By using or downloading OVHcloud Backint Agent for SAP HANA, you consent to the license terms.

:::

The `hdbbackint.cfg` file must have the read and write rights, the `hdbbackint` file must have the read and execution rights. These rights must be applied to the SAP HANA (sid)adm user.

```bash
chown <sid>adm:sapsys /usr/sap/<SID>/SYS/global/hdb/opt/hdbbackint.cfg
chown <sid>adm:sapsys /usr/sap/<SID>/SYS/global/hdb/opt/hdbbackint
chmod 600 /usr/sap/<SID>/SYS/global/hdb/opt/hdbbackint.cfg
chmod 500 /usr/sap/<SID>/SYS/global/hdb/opt/hdbbackint
```

Check that you are able to execute OVHcloud Backint Agent with the SAP HANA user.

```bash
su - <sid>adm -c "/usr/sap/<SID>/SYS/global/hdb/opt/hdbbackint -v"
```

Expected output:

```console
"Backint 1.04" "OVHcloud Backint Agent version 1.0 for SAP HANA"
```

### Configuration

Edit the content of the `hdbbackint.cfg` file and replace all values between chevrons by your Object Storage bucket information. Below is an example of its content after edition.

```ini
[trace]
default = INFO
destination = outputfile

[ovhcloud]
endpoint_url = https://s3.rbx.io.cloud.ovh.net
bucket = my-sap-hana-bucket
region = rbx
access_key = 12345678901234567890123456789012
secret_key = 12345678901234567890123456789012
max_concurrency = 10
multipart_chunksize = 1GB
multipart_threshold = 1GB
```

The `multipart_chunksize` and `multipart_threshold` parameters can be set with values in byte (example: 52428800 equal 50MB), in KB, in GB, or in TB. If the value is set without unit, the default unit is byte.

- The `multipart_threshold` parameter triggers the upload of an object in multipart.
- The `multipart_chunksize` parameter sets the size of each part to be uploaded.

The default values for `multipart_chunksize` and `multipart_threshold` parameters in the `hdbbackint.cfg` file offer an optimal performance in many cases, but you can increase or decrease it, depending on your environment.

:::warning
The following commands modify the backup configuration of your SAP HANA database, please execute these commands with caution.

We recommend triggering a full backup of your SAP HANA database after this operation to validate the configuration.

:::

Execute the following SQL commands to update the backup configuration of your SAP HANA database.

_Replace in the following SQL commands the_ `<SID>` _characters by the SID of your SAP HANA database._

```sql
ALTER SYSTEM ALTER CONFIGURATION('global.ini','SYSTEM') SET('backup','catalog_backup_parameter_file')='/usr/sap/<SID>/SYS/global/hdb/opt/hdbbackint.cfg' WITH RECONFIGURE;
ALTER SYSTEM ALTER CONFIGURATION('global.ini','SYSTEM') SET('backup','catalog_backup_using_backint')='true' WITH RECONFIGURE;
ALTER SYSTEM ALTER CONFIGURATION('global.ini','SYSTEM') SET('backup','data_backup_parameter_file')='/usr/sap/<SID>/SYS/global/hdb/opt/hdbbackint.cfg' WITH RECONFIGURE;
ALTER SYSTEM ALTER CONFIGURATION('global.ini','SYSTEM') SET('backup','log_backup_parameter_file')='/usr/sap/<SID>/SYS/global/hdb/opt/hdbbackint.cfg' WITH RECONFIGURE;
ALTER SYSTEM ALTER CONFIGURATION('global.ini','SYSTEM') SET('backup','log_backup_using_backint')='true' WITH RECONFIGURE;
```

If the size of your SAP HANA database is greater than 128GB, it is possible to optimise the performance of the back up and recover with enabling the multi-streaming. To do this, please execute the following SQL commands:

```sql
ALTER SYSTEM ALTER CONFIGURATION('global.ini','SYSTEM') SET('backup','parallel_data_backup_backint_channels')='4' WITH RECONFIGURE COMMENT 'SAP NOTE 2458043';
ALTER SYSTEM ALTER CONFIGURATION('global.ini','SYSTEM') SET('backup','data_backup_buffer_size')='2048' WITH RECONFIGURE COMMENT 'SAP NOTE 2458043';
```

The value of the `data_backup_buffer_size` parameter depends from that `parallel_data_backup_backint_channels` parameter.
Its value is the result of the "512 x `parallel_data_backup_backint_channels`" operation.

:::info
To discover all backup parameters for SAP HANA, we recommend the [SAP documentation](https://help.sap.com/docs/SAP_HANA_PLATFORM/009e68bc5f3c440cb31823a3ec4bb95b/e28fbdf1024c40e1a97fca48380aad98.html?locale=en-US). In the column "Section", set "Backup".

:::

### Backup

To validate the configuration, you can trigger manual backups with the following commands via SSH access:

_Replace in the following commands the_ `<SID>` _characters by the SID of your SAP HANA database and_ `<NI>` _characters by the instance number of your SAP HANA database._

```bash
# SYSTEMDB Backup
/usr/sap/<SID>/HDB<NI>/exe/hdbsql -u SYSTEM -d SYSTEMDB "BACKUP DATA USING BACKINT ('MANUAL_COMPLETE_BACKUP');"

# TENANTDB Backup
/usr/sap/<SID>/HDB<NI>/exe/hdbsql -u SYSTEM -d SYSTEMDB "BACKUP DATA FOR <SID> USING BACKINT ('MANUAL_COMPLETE_BACKUP');"
```

You also have the possibility to trigger these backups via SAP HANA Cockpit. Select `Backint
` in the `Destination Type
` category.
![backup_hana_cockpit](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/backup_hana_cockpit.png)
After the execution of these backups, several files named `_databackup_` are now present in your Object Storage bucket, these files correspond to backups of your SAP HANA database via OVHcloud Backint Agent.

Two files named `log_backup_0_0_0_0` and which have `DB_<SID>` and `SYSTEMDB` prefixes are also present in your Object Storage bucket. These files correspond to backups of the SAP HANA backup catalog, allowing you to list backups known by SAP HANA.

Files named `log_backup` correspond to backups of SAP HANA logs backups.

![bucket](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/bucket.png)
If these backups have not been done as expected, check the content of the following files to search for errors:

- backint.log
- backup.log

Both files are present in the repository `/usr/sap/<SID>/HDB<NI>/<hostname>/trace` for the SYSTEMDB backup and the repository `/usr/sap/<SID>/HDB<NI>/<hostname>/trace/DB_<SID>` for the TENANTDB backup.

The `backint.log` file gives you information about the OVHcloud Backint Agent execution. For example, a permission issue with the Object Storage bucket:

```log
2024-02-08 14:10:41.266 backint started:
  command: /usr/sap/HDB/SYS/global/hdb/opt/hdbbackint -f backup -p /usr/sap/HDB/SYS/global/hdb/opt/hdbbackint.cfg -i /var/tmp/hdbbackint_HDB.kwu3jY -o /var/tmp/hdbbackint_HDB.N1KX90 -u HDB -s 1707397841205 -c 2 -l COMPLETE
  pid: 3702
  input:
  #SOFTWAREID "backint 1.04" "HANA HDB server 2.00.071.00.1687900751"
  #PIPE "/usr/sap/HDB/SYS/global/hdb/backint/SYSTEMDB/FULL_BACKUP_databackup_0_1"
2024-02-08 14:10:41.967 backint terminated:
  pid: 3702
  exit code: 1
  output:
  exception:
  exception  1: no.110507  (Backup/Destination/Backint/impl/BackupDestBackint_Executor.cpp:250)
      Backint exited with exit code 1 instead of 0. console output: Bucket information error in hdbbackint.cfg - 403 Forbidden
```

The `backup.log` file gives you information about the backup execution through SAP HANA, its progress and its encountered errors.

```log
INFO    BACKUP   state of service: nameserver, <hostname>:30001, volume: 0, BackupExecuteTopologyAndSSFSBackupInProgress
INFO    BACKUP   state of service: nameserver, <hostname>:30001, volume: 0, BackupError
INFO    BACKUP   state of service: nameserver, <hostname>:30001, volume: 1, BackupAbortSavepointInProgress
INFO    BACKUP   state of service: nameserver, <hostname>:30001, volume: 1, BackupAbortSavepointFinished
ERROR   BACKUP   SAVE DATA finished with error: [447] backup could not be completed
```

### Scheduling

The scheduling of your SAP HANA database backups has to be modified.

We advise you to refer to the SAP Note [2782059](https://launchpad.support.sap.com/#/notes/2782059) which sets out four options to schedule the backup of SAP HANA databases.

An example of a daily scheduling of a TENANTDB SAP HANA backup via the SAP HANA Cockpit:

1. Select the TENANTDB on which you want to schedule backups. Click on `\+
` to add the scheduling.
![backup_scheduling_01](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/backup_scheduling/backup_scheduling_01.png)
2. Select the `Schedule a Series of Backups
` option.
![backup_scheduling_02](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/backup_scheduling/backup_scheduling_02.png)
3\. Give a name to your scheduling.

![backup_scheduling_03](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/backup_scheduling/backup_scheduling_03.png)
4. Select `Complete
` option then `Backint
`. You have the possibility to configure a backup prefix. By default, backups are prefixed with the date and time.
![backup_scheduling_04](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/backup_scheduling/backup_scheduling_04.png)
5. Select `Weekly
` option.
![backup_scheduling_05](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/backup_scheduling/backup_scheduling_05.png)
6\. Select your time zone, the time and the day when the backup has to be triggered. In this daily backups example, we check all days of the week.

![backup_scheduling_06](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/backup_scheduling/backup_scheduling_06.png)
7\. Please check parameters of your scheduling before applying.

![backup_scheduling_07](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/backup_scheduling/backup_scheduling_07.png)
8\. The daily scheduling is now configured for your TENANTDB.

![backup_scheduling_08](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/backup_scheduling/backup_scheduling_08.png)
Find below the same daily backups scheduling of the TENANTDB SAP HANA via crontab:

_Replace in the following commands the_ `<SID>` _characters by the SID of your SAP HANA database and_ `<NI>` _characters by the instance number of your SAP HANA database._

```bash
# TENANTDB Full Backup - Everyday
30 1 * * * /usr/sap/<SID>/HDB<NI>/exe/hdbsql -U BACKUP "BACKUP DATA FOR <SID> USING BACKINT ('$(date +\%d\%m\%Y_\%H\%M\%S\%s)_COMPLETE_BACKUP');"
```

:::info
The `-U` option allows you to call a stored key in the hdbuserstore. To know more about the addition of a key in the hdbuserstore, we suggest you to read the SAP documentation available at [this address](https://help.sap.com/docs/SAP_HANA_PLATFORM/b3ee5778bc2e4a089d3299b82ec762a7/ddbdd66b632d4fe7b3c2e0e6e341e222.html?version=2.0.02\&locale=en-US).

In this example, the `BACKUP` key has been created with a login and password for a SAP HANA user which has the role BACKUP. The privileges to grant to this user are explained in [the SAP HANA documentation](https://help.sap.com/docs/SAP_HANA_PLATFORM/6b94445c94ae495c83a19646e7c3fd56/c4b71703bb571014810ebb38dc59cf51.html).

:::

### Recovery

To recover a SAP HANA database from a backup done with OVHcloud Backint Agent, follow these steps in SAP HANA Cockpit:

1. In the `Database Management
` tab, select your TENANTDB. Click on `Tenant Actions
` then select `Recover Tenant
`.
![recover_tenant_01](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_01.png)
2\. The TENANTDB has to be stopped to do the recovery.

Make sure to stop your SAP system linked to this SAP HANA database before starting the recovery.

![recover_tenant_02](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_02.png)
3\. Select the wanted option :

- <code className="action">Data and logs backups</code> allows you to recover to a specific point in time.
- <code className="action">Full data backup only</code> allows you to recover to a state of a full backup.

In our example, we select the `Data and logs backups
` option.
![recover_tenant_03](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_03.png)
4. If you previously selected the `Data and logs backups
` option, you have two options:
- <code className="action">Recover to the most recent state</code> allows you to recover to the most recent state.
- <code className="action">Recover to a specific point in time</code> allows you to recover to a specific point in time.

In our example, we select the `Recover to the most recent state
` option.
![recover_tenant_04](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_04.png)
5. If you did not modify the backups catalog location, the `Backint location only
` option is right.
Otherwise, please give the path.

![recover_tenant_05](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_05.png)
6\. After few seconds, all full data backups recorded in the backups catalog of your SAP HANA database are listed.

![recover_tenant_06](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_06.png)
7. You can leave the `Yes (recommended)
` option selected.
![recover_tenant_07](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_07.png)
8\. If you did not modify the backups and logs backup location, please leave the fields empty.

Otherwise, please set paths.

![recover_tenant_08](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_08.png)
9. We recommend selecting `Yes
` for the `Backint
` category. This option allows you to check the availability of backups before triggering the recovery.
![recover_tenant_09](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_09.png)
10. In our example, we select `No
` for the `Initialize the log area
` step.
![recover_tenant_10](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_10.png)
11\. Please check parameters of your recovery before applying.

![recover_tenant_11](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_11.png)
12\. The recovery of your TENANTDB services starts.

![recover_tenant_12](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_12.png)
13\. Once the recovery has been done successfully, your SAP HANA database is started and available.

![recover_tenant_13](/images/hosted-private-cloud/sap-on-ovhcloud/cookbook-install-ovhcloud-backint-agent/recover_tenant/recover_tenant_13.png)
## Go further

- To improve the security of your backups, we advise you to set the [object immutability](/pt/guides/storage-and-backup/object-storage/s3-managing-object-lock.md).
- You also have the possibility to [trigger SAP HANA backup to several Object Storage buckets](/pt/guides/hosted-private-cloud/sap-on-ovhcloud/hana-use-ovhcloud-backint-agent-several-buckets.md).

If you need training or technical assistance to implement our solutions, contact your sales representative or click on [this link](https://www.ovhcloud.com/pt/professional-services/) 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](https://community.ovhcloud.com/community/en).
