Cloud Storage Backint agent for SAP HANA installation guide

These instructions show you how to install and configure the Cloud Storage Backint agent for SAP HANA (Backint agent).

For information about the configuration options of the Backint agent, see Cloud Storage Backint agent for SAP HANA overview.


Before you can install the Backint agent, you first need to install SAP HANA. To install SAP HANA on Google Cloud, see SAP HANA Deployment Guide.

For information about installing SAP HANA on Bare Metal Solution, see the SAP HANA on Bare Metal Solution planning guide.

If the host VM does not have access to the internet, you need to configure Private Google Access so that Backint agent can access the Google Cloud APIs. To configure Private Google Access, see Configuring Private Google Access.

Creating a Cloud Storage bucket for backups

Before you can configure the Backint agent, you need to create a Cloud Storage bucket to hold the backups.

To create a Cloud Storage bucket, use the Cloud Console.

For information about bucket options, see Storing backups in Cloud Storage buckets.

  1. Open the Cloud Storage browser in Cloud Console.

    Open the Cloud Storage browser


  3. Name your bucket and then click Continue.

  4. Follow the prompts to select your bucket options.

  5. Click Create.

  6. To configure bucket permissions, click the permissions tab. By default, as owner of the bucket, you have read-write access to the bucket. You can also allow other principals to access your bucket.

Installing the Backint agent on the SAP HANA host

The Backint agent is installed in the same shared file system as the SAP HANA database.

In an SAP HANA scale-out deployment, install the Backint agent on each node of the SAP HANA system. To simplify administration, you can store your configuration files in a shared location that is accessible to all of the nodes in your deployment, such as /hana/shared.

  1. Connect to your SAP HANA host by using SSH. If your host is a Compute Engine VM, from VM instances page, you can click the SSH button for your VM instance, or you can use your preferred SSH method.

  2. Switch to the SAP HANA system administrator.

    sudo su - sidadm
  3. Download and install the Backint agent.

    curl | bash

    The script takes the following actions:

    • Installs the Backint agent as a JAR file in /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs.
    • Downloads a compatible version of the Java Runtime Environment.
    • Sets up the backint script that invokes the Backint agent. Do not modify the backint script unless instructed to do so by Cloud Customer Care.
    • Upon completion, issues a message that instructs you to update the parameters.txt file and to set up authentication. See Configuring the Backint agent and SAP HANA for more details.
  4. If any of the following scenarios apply to you, you need to create a service account for the Backint agent:

    • You need the Backint agent to use a different set of resource permissions than your host Compute Engine VM uses.
    • SAP HANA is running on Bare Metal Solution.
    • SAP HANA is not running on Google Cloud.

    To create a service account for the Backint agent:

    1. In the Cloud Console, go to the Service accounts page.

      Go to the Service Accounts page

    2. Select your Google Cloud project.

    3. Click Create Service Account.

    4. Specify a name for the service account and, optionally, a description.

    5. Click Create and Continue.

    6. Click Continue to create the service account without permissions.

    7. As appropriate, grant other users access to the service account.

    8. Click Done.

    9. On the Service accounts page in the Cloud Console, click the email address of the service account that you just created.

    10. Under the service account name, click the Keys tab.

    11. Click the Add Key drop-down menu, and then select Create new key to create a service account key.

    12. Accept JSON as the key type and click Create. A private key is saved to your computer.

  5. Upload the JSON key file to the SAP HANA host.

    • Store the .json file in a directory that the sidadm user can access, such as /usr/sap/SID/home
    • Make sure that the sidadm user is authorized to read the file.
  6. Update your Cloud Storage bucket to grant the service account permission to use the bucket:

    1. Click on your bucket name in the Cloud Storage browser.

      Open Cloud Storage browser

    2. Click the Permissions tab.

    3. Click Add principals.

    4. In the New principals field, enter the full email address of the service account. For example:

    5. Click on the Select a role drop down and enter Storage Object Admin.

    6. Click Save.

Configuring the Backint agent and SAP HANA

You configure the Backint agent by specifying parameters in a plain text configuration file.

You can use the same single configuration for all backup types (data, log, and catalog), or you can use a different configuration for each backup type by creating a separate configuration file for each.

You specify the path to each Backint agent configuration file in SAP HANA by specifying parameters in the global.ini file.

  1. Configure the Backint agent by specifying parameters in the parameters.txt file. You can rename the file as appropriate.

    1. Use your preferred method to edit the parameters.txt file. The file is installed in the following directory.


      You can rename the parameters.txt file and use different configuration files for data, log, and catalog backups.

      For descriptions of the configuration parameters, as well as performance recommendations, see Configuration options for the Backint agent.

    2. Specify the name of the Cloud Storage bucket to use for the backups.

      #BUCKET bucket-name
    3. If you created a service account and private key for the Backint agent, specify the path to the JSON key file.

      #SERVICE_ACCOUNT /path/key-file-name.json

    The following example shows the contents of a valid parameters.txt file.

    #BUCKET hana-backups
    #SERVICE_ACCOUNT /usr/sap/ABC/home/example-project-123456-d591d63bba6f.json
  2. Optional: Configure the Backint agent to bypass or use a proxy for backups and recoveries. By default, the Backint agent bypasses HTTP proxies.

    Queries to the instance metadata server must always bypass the HTTP proxy server. Use either the http or https proxy parameters as required by your proxy server.

    To specify proxy server settings for the Backint agent, edit the file /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs/jre/conf/

    For example, the following configuration specifies an HTTPS proxy server:


    For more information about using the Backint agent with a proxy, see Proxies and the Backint agent.

  3. Configure SAP HANA to use the Backint agent:

    1. Use SAP HANA Studio or SAP HANA Cockpit to set the following parameters in the backup section of the global.ini configuration file to the values shown in the table. You do not need to restart SAP HANA after making these changes.

      If you are using a different configuration file for each different type of backup, specify the different configuration files as shown in the following table. Otherwise, specify the same configuration file for all types.

      Parameter Value
      catalog_backup_parameter_file /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs/parameters-catalog.txt
      catalog_backup_using_backint true
      data_backup_parameter_file /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs/parameters-data.txt
      log_backup_parameter_file /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs/parameters-log.txt
      log_backup_using_backint true
    2. Use SAP HANA Studio to specify the same value for both basepath_catalogbackup and basepath_logbackup in the persistence section of the global.ini file. For example:

      basepath_catalogbackup and basepath_logbackup show the same value in the persistence section of the global.ini file

  4. Test the installation by creating a backup in the Cloud Storage bucket and restoring from the backup.

  5. To support the Backint agent automatic update function, enable remote HTTP requests from the SAP HANA VM to

  6. Optionally, enable Cloud Logging.

    • If SAP HANA is running on a Compute Engine VM, add the handler to the property in the /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs/ file.
    • If SAP HANA is running outside of Google Cloud, install Cloud SDK and configure the application-default login by using the gcloud auth application-default login command.

Updating the Backint agent to a new version

To update the Backint agent to a new version:

  1. Enable remote HTTP requests from the SAP HANA host to

  2. As sidadm on the SAP HANA host, install the new version:

    curl | bash

The script takes the following actions:

  • Installs the new version of the Backint agent in /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs.
  • Updates the backint script to invoke the new Backint agent version.
  • Updates the version number in VERSION.txt.
  • Stores the script locally in /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs.
  • Issues a message when it's done.

The update process does not modify or replace your existing parameters.txt file. To use any new options introduced in the new version, you need to add the corresponding parameters to your existing parameters.txt file.

The update process leaves the old version of the Backint agent in the /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs directory, so that you can fall back to the old version if needed.

Falling back to a previous version

If you encounter problems with a new version of the Backint agent and Google Cloud or SAP support advises you to fall back to your previous version, you can do so by editing the backint script file.

You do not need to remove any parameters that you might have added for the new version in the parameters.txt file. The previous version of the Backint agent ignores the parameters from the newer version.

To fallback to a previous version:

  1. As sidadm, open the backint script for editing. For example:

    vi /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs/backint
  2. Change the name of the Backint agent JAR file to the name of the JAR file of the previous version.

    For example, if you are falling back from version 1.0.6 to version 1.0.4, you would change:

    -jar /usr/sap/ABC/SYS/global/hdb/opt/backint/backint-gcs/sap-backint-gcs-1.0.6.jar

    -jar /usr/sap/ABC/SYS/global/hdb/opt/backint/backint-gcs/sap-backint-gcs-1.0.4.jar

  3. Open the VERSION.txt file for editing and specify the previous version number. You need to do this so that the update mechanism knows which version you are running.

    vi /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs/VERSION.txt
  4. Test the Backint agent by triggering a backup.


If errors occur during the execution of a backup or a recovery, error messages are displayed in SAP HANA Studio or SAP HANA Cockpit, so check there first for information about the cause of an error. This information might be displayed in the backup.log and backint.log trace files. Be sure to select the relevant database name when multitenant database containers (MDC) are used.

Ensure that you installed the Backint agent as the sidadm user.

Log files

If errors occur, review the following logs:

  • SAP HANA backup.log, which contains information about the SAP HANA backup and recovery operations.
  • SAP HANA backint.log, which contains the calls to the backup interface that is used by the Backint agent and other external backup tools.
  • Backint agent log files, which contain Backint agent installation and operational events. The Backint agent log files are located in /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs/logs. The Backint agent logs can include indications of communication errors with Cloud Storage and related configuration or permissions issues.
  • The Google Cloud logs, which can contain errors related to the service account that is used by the Backint agent. To review the Google Cloud logs, see the Logs Viewer page in Cloud Console.

Also check the disk and network I/O information on the SAP HANA host to verify activity.

For more information about Backint agent logging, see Logging for the Backint agent.

Connectivity issues

If the Backint agent can't connect to the Cloud Storage bucket, review the configuration steps. In particular, check the following items:

  • Retry the failed backup or restore to make sure that the error wasn't just a momentary connectivity issue.
  • If you are using the service account of the host VM with the Backint agent, the access scope for Storage is listed as Read Write under Cloud API access scopes on the VM instance details page in the Cloud Console. If it is not, stop the instance and edit the access scope.
  • If you created a service account for the Backint agent:
    • On the Permissions tab of the Bucket details page in the Cloud Console, confirm that the Backint agent service account is listed and that it has the Storage Object Admin role.
    • Confirm that you created a private key, stored it on the SAP HANA host, and correctly specified the path to the JSON key file in the Backint agent configuration file, /usr/sap/SID/SYS/global/hdb/opt/backint/backint-gcs/parameters.txt.
  • All parameters are specified correctly in both the parameters.txt Backint agent configuration file and the SAP HANA global.ini file.

You can test access to the Cloud Storage bucket from the SAP HANA host by using the Cloud Storage gsutil tool that is included with the Cloud SDK. Using the gsutil tool, save and access a text file on the Cloud Storage bucket:

  1. If you are not using the default service account, authenticate with Google Cloud either as a user that is authorized to the Cloud Storage bucket or the Backint agent service account:

    gcloud auth login user-account
    gcloud auth activate-service-account --key-file=/path/key-file-name.json
    For more information about Cloud Storage authentication of a service account, see gsutil authentication.

  2. Confirm that you can list the objects that are stored in the bucket:

    gsutil ls gs://bucket/

  3. Create a test file:

    touch test.txt

  4. Confirm that you can write the test file to the bucket:

    gsutil cp test.txt gs://bucket/test.txt

  5. Confirm that you can read the test file in the bucket:

    gsutil cp gs://bucket/test.txt

Low throughput

If your throughput is lower than expected, verify that compression is disabled.

To disable compression, add the #DISABLE_COMPRESSION flag to the Backint agent parameters.txt file.

Multistreaming errors

If you get errors while multistreaming, change the number of streams to one (1) to see if the error is related to the number of streams.

For more information about Backint agent logging, see Multistreaming data backups with the Backint agent.

Getting support for the Backint agent

If you need help resolving a problem with SAP HANA backups that use the Backint agent, create an incident in the SAP incident processing system, using component HAN-DB-BAC, as indicated by SAP Note 2705632.

If SAP determines that the root cause is in the Google Cloud software, SAP development support transfers the incident to the BC-OP-LNX-GOOGLE component, which Google Cloud monitors at all times.

In addition to the diagnostic information requested in SAP Note 2705632, gather the following additional diagnostic information:

  • Relevant extracts of the /var/log/messages on the HANA system affected from around the time of the issue.
  • The SAP HANA backup.log and backint.log files. Unless the issue also occurs with the SYSTEM database, you need the files only for the tenant database.
  • The Backint agent parameters.txt file and the log files in the backint-gcs directory, or an export of Cloud Logging logs, if you have activated Logging.
  • The global.ini entries for backup:
    • backint_response_timeout
    • data_backup_buffer_size
    • parallel_data_backup_backint_channels
  • The software versions of SAP HANA, the operating system, and the Backint agent that you are using. The version of Backint agent is listed in the installation.log file.
  • The size of your backup.
  • Information about the IAM service account that the Backint agent is using to access Cloud Storage, including the account name and the roles it has been granted.
  • Information about whether previous backup or restore attempts from this host VM were successful.
  • A description of your SAP HANA landscape, including the hosts and their roles.

For more information from SAP about getting support for SAP HANA, see the "Getting Support" section in the SAP HANA Administration Guide.