Installation
This section provides information to help you install the Amazon Backint agent using the Amazon Backint for SAP ASE installer. It also provides information to help you configure the agent, view logs, and get the current agent version.
Backint for SAP ASE Installer
Amazon Backint Installer (install-aws-backint-agent-ase) is the recommended method for installing Amazon Backint Agent for ASE on an Amazon EC2 instance running SAP ASE.
-
Download
install-aws-backint-agent-asefrom Amazon S3.wget https://s3.amazonaws.com/awssap-backint-agent-ase/binary/latest/install-aws-backint-agent-ase -
Verify authenticity of installer. (See section Verify Authenticity before Installation)
-
Start installation by running installer as
root.
The Installer installs Amazon Backint Agent in a central directory (/sybase/shared/aws-backint-agent-ase).
In addition, symbolic links are created at a database-specific location (e.g., /sybase/Amazon/lib).
This allows multiple instances of SAP ASE running on the same Amazon EC2 instance to use Amazon Backint Agent.
Installation logs are written to install_aws_backint_YYYYMMDD_HHMMSS.log in the current working directory.
Interactive Mode
Interactive mode provides a guided installation experience. You are asked to provide each configuration value before the installation starts.
./install-aws-backint-agent-ase
Silent Mode
Silent mode allows for unattended installation without user interaction. It requires a response file - either created manually, or by running the installer in interactive mode and selecting "Create Response File".
./install-aws-backint-agent-ase \ --mode silent \ --config-file install-aws-backint-agent-ase-response.rsp
Example: Response File
[DEFAULT] s3_bucket = my-s3-bucket s3_bucket_folder = my-backup-folder s3_sse_kms_arn = arn:aws:kms:us-east-1:111122223333:key/1abcd9b9-ab12-1a2a-1abc-12345abc12a3 s3_sse_kms_enabled = True aws_account_id = 111122223333 aws_region = us-east-1 sid = AWS installation_directory = /sybase/shared binary_location = aws-backint-agent-ase.rpm verify_agent_binary = True create_response_file = True install_action = install
Upgrade
The installer supports upgrading an existing installation of Amazon Backint Agent for SAP ASE. Follow the same steps as in the previous section. The installer will detect that the currently installed version is lower and perform the upgrade.
In case of issues with the upgrade process, uninstall the existing installation first.
Uninstall
In case you want to uninstall Amazon Backint Agent for SAP ASE.
-
Remove the RPM package using the RPM package manager.
rpm -e aws-backint-agent-ase -
Remove the Installation directory.
rm -r /sybase/shared/aws-backint-agent-ase -
Remove stale symbolic links in database installation directory.
find <install dir>/lib -type l -xtype l -delete
Verify Authenticity before Installation
Files for installing Amazon Backint Agent for SAP ASE - the installer (install-aws-backint-agent-ase) and the RPM package (aws-backint-agent-ase.rpm) - support signature verification.
Use the Amazon Backint public key to verify that the downloaded files are original and unmodified.
Verify Installer
-
Download public key
> wget https://s3.amazonaws.com/awssap-backint-agent/binary/public-key/aws-backint-agent.gpg -
Import public key into your GPG keyring
> gpg --import aws-backint-agent.gpg gpg: key 1E65925B: public key "AWS Backint Agent" imported gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1)Make a note of the key value, as you will need it in the next step. In the preceding example, the key value is 1E65925B.
-
Verify fingerprint
> gpg --fingerprint 1E65925B pub 2048R/1E65925B 2020-03-18 Key fingerprint = BD35 7A5F 1AE9 38A0 213A 82A8 80D8 5C5E 1E65 925B uid [ unknown] AWS Backint AgentThe fingerprint should be equal to the following:
BD35 7A5F 1AE9 38A0 213A 82A8 80D8 5C5E 1E65 925BNote
If the fingerprint string doesn’t match, don’t install the agent. Contact Amazon Web Services.
-
Download the signature file
install-aws-backint-agent-ase.sigof the installer.> wget https://s3.amazonaws.com/awssap-backint-agent-ase/binary/latest/install-aws-backint-agent-ase.sig -
Verify installer (
install-aws-backint-agent-ase) and signature (install-aws-backint-agent-ase.sig).> gpg --verify \ install-aws-backint-agent-ase.sig \ install-aws-backint-agent-aseNote
If the output includes the phrase BAD signature, check whether you performed the procedure correctly. If you continue to get this response, contact Amazon Web Services and avoid using the downloaded files.
Verify RPM package
By default, the installer verifies the signature of the RPM package automatically before installation. Installation fails if the authenticity of the RPM package - downloaded automatically or manually - fails.
Follow the instructions below to verify the signature manually.
-
Import GPG key into RPM database.
> rpm --import aws-backint-agent.gpg -
Verify the signature.
> rpm -Kv aws-backint-agent-ase.rpm aws-backint-agent-ase.rpm: Header V3 RSA/SHA1 Signature, key ID 1e65925b: OK Header SHA1 digest: OK V3 RSA/SHA1 Signature, key ID 1e65925b: OK MD5 digest: OKNote
If the command fails (return code != 0) or the key ID does not match the key ID of the GPG public key, do not install the RPM package. Contact Amazon Web Services.
Configuration
Installing Amazon Backint Agent for SAP ASE with the installer creates a configuration file automatically.
The configuration file is located at /sybase/shared/aws-backint-agent-ase/aws-backint-agent-config.yaml.
The following tables summarize the configuration parameters added as part of the Amazon Backint agent installation process.
Default Parameters
| Parameter | Description |
|---|---|
|
|
Amazon Region of your Amazon S3 bucket. For example, |
|
|
Name of the Amazon S3 bucket, where you want to store your SAP ASE backup files. For example, |
|
|
Name of the folder in the Amazon S3 bucket, where you want to store your SAP ASE backup files. For example, |
|
|
12-digit Amazon account ID of the Amazon S3 bucket owner. For example, |
|
|
Specifies whether Amazon KMS encryption is enabled. |
|
|
ARN of the kms-key that Amazon Backint agent can use to encrypt the backup files stored in Amazon S3. For example, |
|
|
Location of the Amazon Backint agent log file. |
Additional Parameters
You can add the following additional parameters to the configuration file.
| Parameter | Description | Default value | Allowed values |
|---|---|---|---|
|
|
Additional S3 object tags. |
None |
JSON string with the following syntax: |
|
|
Enables or disables default object tagging for backups files stored in S3. Tagging helps to identify the Amazon Backint version and SAP HANA version used during the backup. |
|
|
|
|
Logging level for agent logs. |
|
|
|
|
Log file rotation frequency. |
|
|
|
|
S3 storage class that is used for storing backups. |
|
|
|
|
Number of Amazon S3 threads that can work in parallel during backup. |
|
|
|
|
Number of files that can be uploaded in parallel to the S3 bucket during the backups. |
|
|
|
|
Number of Amazon S3 threads that can work in parallel during restore. |
|
|