Storage Provider Profiles
This section will help you to understand what are the Storage Provider profiles and how to manage them.
Topics
What is a Storage Provider Profile?
A Storage Provider profile is a set of parameters that handle all the needed information to connect to the target storage provider. These parameters will hold the bucket/container name, the location, the Encryption Mode and the Encryption Keys to apply to the objects generated by the SAP backup and also the Storage Class to be used to use at REST.
You can have multiple profiles in your CxLink Backup configuration but only one can be set as the target for your backups and the same, or a different one, as the source to retrieve during restore processes.
So why creating multiples profiles? In some scenarios you may need to retrieve a backup from another system to recover from disaster scenario or to perform a System Copy.
Imagine that your SAP Server is down and you want to restore this server in another AWS Account to comply with your disaster recovery requirements. You will have a recover profile to retrieve the latest available backup from the primary server but start performing backups in a different storage to avoid overwriting the source backups.
Imagine also that you have a SAP Quality server, and you want to periodically restore backups from your production server. You can set the Quality bucket as the target for backups, but use the Production server profile to restore and refresh your database.
Below you can find an example on how Providers section will look like in the emory configuration file:
Expand to see an example
_20Providers:_20 production:_20 Type: Azure_20 Azure:_20 AccountName: emoryaccount_20 AccountKey: 9b59ddfef56b6f83e62b69cbb60ef008f73d621636bfe49310875b1428b3e302bf23b8b8399b1f190c9063a0a73f52b560c5ddf7901386f10115718e5ac61713df12285dfeb2185b4780e7fbc9ed27fb41ea441479013fa1ef28bf852e908a2020699312c80266d9ebb7b617b0445e5e1933511282dd_20 ContainerName: emory-backups_20 BufferSize: 83886080_20 MaxBuffers: 30_20 TierType: Cool_20 develop:_20 Type: AWS_20 AWS:_20 Region: eu-west-1_20 Bucket: emory-backup-demo_20 Encryption: AES256_20 StorageClass: Standard_20 Tagging: true_20 MemoryBuffer: 83886080_20 Concurrency: 30
Storage Profiles parameters
AWS
Azure
Google Cloud
Memory consumption and maximum database size
Depending on the number of Concurrency processes and the Memory Buffer set you can notice some performance degradation. Ensure that the values are correct for your server.
To estimate how much memory is needed you can use the CxLink Backup calculator.
Input parameters are:
- Number of parallel processes to be used during backup
- Memorybuffer size
- Concurrency
And the tool will calculate:
- Memory consumption
- Maximum database size that can be saved with the parameters
Encryption keys rotation
Encryption keys rotation strategy for the storage profile configured has to be defined and executed by you following the corresponding provider documentation:
Azure Storage Account Keys management
Manage Storage Profiles
This section will guide you in the steps of creating, modifing and deleting Storage Profiles.
All the following actions will be managed from the Storage Providers profile section in the Interactive menu. To start it, execute the emory settings tool as SAP Database Administrator user
_10/opt/emory/emory
and choose the Storage Providers profiles
option:
_18? CxLink Backup: [Use arrows to move, enter to select, type to filter]_18 --------------------------------------------------------------------------------_18> Storage Providers profiles_18 Set storage providers for backup/restore, disaster recovery and system copy_18 Backups Lifecycle settings_18 Monitoring_18 --------------------------------------------------------------------------------_18 License_18 --------------------------------------------------------------------------------_18 Logging file settings_18 Debug traces_18 Show relevant information of this CxLink Backup_18 --------------------------------------------------------------------------------_18 Catalog & Backups management_18 --------------------------------------------------------------------------------_18 Generate troubleshooting package to be sent to Syntax Support_18 --------------------------------------------------------------------------------_18 Exit
Add/Edit a Storage Provider profile - interactive mode
In this section you will be able to define the access to remote storage destination as well as its properties. We will use this providers profiles to store o retrieve our backups.Follow these steps to add a new Storage Provider profile for your backups:
-
Choose Add
_10? Select action to perfom: [Use arrows to move, enter to select, type to filter]_10--------------------------------------------------------------------------------_10> Add_10--------------------------------------------------------------------------------_10Back -
Chooose a name for your provider profile (in this example,
development
):_10? Select action to perfom: Add_10? Enter provider profile name: development -
Select your desired provider from the available list:
_10?? Select provider: [Use arrows to move, enter to select, type to filter]_10> AWS_10Azure- AWS
- Microsoft Azure
-
Use AWS Profile. As described in the previous section, you can choose to use an EC2 Instance Service Role (Instance Profile) or an AWS Cli Named Profile to grant the proper permissions to the target Amazon S3 Bucket.
_10AWS command line profile name: [? for help]- Choose a profile name from your AWS profiles file if you want to use an AWS CLI named profile instead of the EC2 instance Service Role.
- Leave it empty or enter if you want to use EC2 Instance Role attached to the EC2 Instance
-
Use AssumeRole. You can store and retrieve your backups, or use different AWS KMS keys from a different AWS Account by assuming a role.
_10? AssumeRole Arn: [? for help]- Choose corresponding role ARN if you want to assume a role to grant access to the target Amazon S3 Bucket.
- Leave it empty if you want to use the inline permissions of the EC2 instance.
-
Select storage location Choose the AWS Region where your backups will be stored. The region of your Amazon S3 Bucket.
You can choose one from the list
_11? AWS Region: [Use arrows to move, enter to select, type to filter, ? for more help]_11> eu-north-1_11ap-south-1_11eu-west-3_11eu-west-2_11eu-west-1_11ap-northeast-3_11ap-northeast-2_11ap-northeast-1_11sa-east-1_11ca-central-1 -
Select Bucket where your backups will be stored
You can choose one from your backups list
_10? AWS S3 Bucket name: [Use arrows to move, enter to select, type to filter, ? for more help]_10> emory-backups-dev_10emory-backups-prod -
Choose encryption type
Choose the encryption model that you want to use from your SAP Backups:
- AES256 (default) (KMS-managed customer master key (CMK) of your AWS Account. Name: aws/s3)
- aws:kms (AWS Key Management Service) Custom symmetrical CMK stored in KMS.
- None. To not encrypting your backups, or to accept the default S3 Encryption option.
_10? Encryption type: [Use arrows to move, enter to select, type to filter, ? for more help]_10> AES256_10aws:kms_10none -
Choose storage class for the backups
CxLink Backup supports the following S3 storage classes. Choose the one that fits your requirements. More information in: https://aws.amazon.com/s3/storage-classes/?nc1=h_ls
_10? Choose storage class for the backups: [Use arrows to move, enter to select, type to filter]_10> INTELLIGENT_TIERING_10STANDARD_10REDUCED_REDUNDANCY_10GLACIER_10STANDARD_IA_10ONEZONE_IA_10DEEP_ARCHIVE -
Tag S3 Objects with backup information
CxLink Backup can automatically add information to the Amazon S3 objects by adding tags. This information can help you later to manage your backups lifecycle or to identify specific backups. The information currently added in the object tags are:
-
backup_id - Unique identified generated by the SAP Database
-
backup_type - Full, Log, transaction, incremental, differential, etc..
-
start_date - Timestamp of the backup execution
-
lifecycle - Daily, Weekly, Monthly, Yearly... (See lifecycle section for additional information). D, W, Y, M
-
expiration_date - If you set the lifecycle policy, when the backup is supposed to be deleted.
-
S3 Downloader/Uploader MemoryBuffer - multipart_chunksize
-
S3 Downloader/Uploader Concurrency - max_concurrent_requests
-
-
Azure Storage Account Name Azure Storage account name
-
Azure Storage Account Key Azure Storeage Access Key. This key will be encrypted at rest. Leave it empty if you want to use Azure managed identity system roles
-
Azure Storage Container Name Azure Storeage Container Name
-
Choose Access tier class for the backups Azure storage access tier class
CxLink Backup supports the following Access tier classes. Choose the one that fits your requirements. More information in: https://docs.microsoft.com/en-us/azure/storage/blobs/access-tiers-overview
_10? Choose access tier class: [Use arrows to move, enter to select, type to filter]_10> Cool_10Hot_10Archive -
Tag Azure Objects with backup information
CxLink Backup can automatically add information to the Azure storage objects by adding tags. This information can help you later to manage your backups lifecycle or to identify specific backups. The information currently added in the object tags are:
- backup_id - Backup unique identifier
- backup_type - Full, Log, transaction, incremental, differential, etc..
- start_date - Timestamp of the backup execution
- lifecycle - Daily, Weekly, Monthly, Yearly... (See lifecycle section for additional information). D, W, Y, M
- expiration_date - If you set the lifecycle policy, when the backup is supposed to be deleted.
-
Azure Downloader/Uploader MemoryBuffer - multipart_chunksize
-
Azure Downloader/Uploader Concurrency - max_concurrent_requests
Add/Edit a Storage Provider profile - unnatended mode
_10/opt/emory/emory provider set <name> <type> <config_options>
List Storage Provider profiles - interactive mode
-
Start the emory settings wizard and choose the
Storage Providers profiles
option:_18? CxLink Backup: [Use arrows to move, enter to select, type to filter]_18--------------------------------------------------------------------------------_18> Storage Providers profiles_18Set storage providers for backup/restore, disaster recovery and system copy_18Backups Lifecycle settings_18Monitoring_18--------------------------------------------------------------------------------_18License_18--------------------------------------------------------------------------------_18Logging file settings_18Debug traces_18Show relevant information of this CxLink Backup_18--------------------------------------------------------------------------------_18Catalog & Backups management_18--------------------------------------------------------------------------------_18Generate troubleshooting package to be sent to Syntax Support_18--------------------------------------------------------------------------------_18Exit -
A list of the existing profiles will be displayed:
_11? Select action to perfom: [Use arrows to move, enter to select, type to filter]_11--------------------------------------------------------------------------------_11> Add_11--------------------------------------------------------------------------------_11Edit : aws_dev_provider [AWS]_11Delete : aws_dev_provider [AWS]_11--------------------------------------------------------------------------------_11Edit : azure_dev_provider [Azure]_11Delete : azure_dev_provider [Azure]_11--------------------------------------------------------------------------------_11Back
Delete a Storage Provider profile - interactive mode
-
Start the emory settings wizard and choose the
Storage Providers profiles
option:_18? CxLink Backup: [Use arrows to move, enter to select, type to filter]_18--------------------------------------------------------------------------------_18> Storage Providers profiles_18Set storage providers for backup/restore, disaster recovery and system copy_18Backups Lifecycle settings_18Monitoring_18--------------------------------------------------------------------------------_18License_18--------------------------------------------------------------------------------_18Logging file settings_18Debug traces_18Show relevant information of this CxLink Backup_18--------------------------------------------------------------------------------_18Catalog & Backups management_18--------------------------------------------------------------------------------_18Generate troubleshooting package to be sent to Syntax Support_18--------------------------------------------------------------------------------_18Exit -
Choose Delete option:
_10? Select action to perfom: [Use arrows to move, enter to select, type to filter]_10--------------------------------------------------------------------------------_10Add_10--------------------------------------------------------------------------------_10Edit : aws_dev_provider [AWS]_10> Delete : aws_dev_provider [AWS]_10--------------------------------------------------------------------------------_10Back -
And confirm:
_10? Select action to perfom: Delete : aws_dev_provider [AWS]_10? Really delete profile? (y/N)
Delete a Storage Provider profile - unnatended mode
_10/opt/emory/emory provider delete <profile_name>
Set Storage Providers for backups & restores
This section will guide you through the steps to define the default Storage Provider profile for backups and restores.
-
Launch the emory wizard and choose the
Set storage providers for backup/restore, disaster recovery and system copy
:_18? CxLink Backup: [Use arrows to move, enter to select, type to filter]_18--------------------------------------------------------------------------------_18Storage Providers profiles_18> Set storage providers for backup/restore, disaster recovery and system copy_18Backups Lifecycle settings_18Monitoring_18--------------------------------------------------------------------------------_18License_18--------------------------------------------------------------------------------_18Logging file settings_18Debug traces_18Show relevant information of this CxLink Backup_18--------------------------------------------------------------------------------_18Catalog & Backups management_18--------------------------------------------------------------------------------_18Generate troubleshooting package to be sent to Syntax Support_18--------------------------------------------------------------------------------_18Exit -
Select
Provider profile to store backups
:_10? Select : [Use arrows to move, enter to select, type to filter]_10> Provider profile to store backups [default]_10[DR scenarios] Provider profile to restore backups [ - None - ]_10[System Copy] Provider profile to restore backups from different SID, System Copy method [ - None - ]_10Back -
And choose a defined provider profile from the list:
_10? Select : Provider profile to store backups [default]_10? Select provider profile: [Use arrows to move, enter to select, type to filter]_10> aws_dev_provider_10aws_prod_provider_10azure_dev_provider_10None
When you create your first new provider profile, it will be set as the provider profile to store backups by default.
Provider profile for restore backups - Disaster Recovery
In some scenarios you may need to retrieve a backup from another system to recover from disaster scenario. To allow CxLink Backup to recover from a different system and storage, you will need to create a new Storage Provider profile with the source information.
If None
is specified in this section, CxLink Backup will use the profile set in the Provider profile to store backups section to recover the database.
-
Select
[DR scenarios] Provider profile to restore backups
from the options:_10? Select : [Use arrows to move, enter to select, type to filter]_10Provider profile to store backups [ - None - ]_10> [DR scenarios] Provider profile to restore backups [ - None - ]_10[System Copy] Provider profile to restore backups from different SID, System Copy method [ - None - ]_10Back -
Select a provider profile from the list:
_10? Select : [DR scenarios] Provider profile to restore backups [ - None - ]_10? Select provider profile: [Use arrows to move, enter to select, type to filter]_10> aws_dev_provider_10aws_prod_provider_10azure_dev_provider_10None
Provider profile for restore backups - System Copy
In some scenarios you may need to retrieve a backup from another system to perform System Copies or to recover from a disaster scenario. To allow CxLink Backup to recover from a different system and storage, you will need to create a new Storage Provider profile with the source data.
Note: system copy is not available for all databases supported by cxLink Backup
If None
is specified in this section, CxLink Backup will use the profile set in the Provider profile to store backups section to recover the database.
-
Select
[System Copy] Provider profile to restore backups from different SID, System Copy method
from the options:_10? Select : [Use arrows to move, enter to select, type to filter]_10Provider profile to store backups [ - None - ]_10[DR scenarios] Provider profile to restore backups [ - None - ]_10> [System Copy] Provider profile to restore backups from different SID, System Copy method [ - None - ]_10Back -
Choose the profile that you want to use to store backups
_10? Select : [System Copy] Provider profile to restore backups from different SID, System Copy method [ - None - ]_10? Select provider profile: [Use arrows to move, enter to select, type to filter]_10> aws_dev_provider_10aws_prod_provider_10azure_dev_provider_10None