Backing Up the Database

You can manually create or automatically schedule a backup of the database catalog. Follow the steps below to successfully back up the database.

Backup Overview

You can perform a full backup, which is a complete copy of the database catalog, its schemas, tables, and other objects. It provides a snapshot of the database at the time of backup. You can use it for disaster recovery or to restore a damaged or an incomplete database. You can also restore individual objects from a full backup.

If a full backup already exists, then the database backup utility tool backs up new or changed data from the time the full backup was created. You can specify the number of backup snapshots to retain.

Understanding Backup Terminology

Prerequisites to Configuring Database Backup

Before you configure the database backup, ensure your cloud administrator creates the communal storage backup location.

For an AWS Environment

For an AWS-based deployment, the backup communal storage location must be in the same region as the live database communal storage. The database supports connecting to S3 buckets in AWS using IAM roles. IAM roles are the default access control method for AWS resources. The database uses this method if you do not configure the legacy access control session parameters.

To use an IAM role, the bucket must be in the same region as the mode's database cluster and the role needs to be set with the proper permissions for reading and writing to the S3 bucket. For more information about creating Amazon S3 buckets, see the AWS documentation, Creating a bucket. For more information about IAM roles, see the AWS documentation, IAM Roles for Amazon EC2 and Creating a role to delegate permissions to an AWS service.

For an Azure Environment

The backup communal storage location must be in the same Azure Storage Account as the live database communal storage.

Preparing the Backup Configuration File

A database backup utility is provided to be used to perform backup and restore procedures. To use this utility, it must first be configured. Once configured, it can be used to perform the complete lifecycle of scheduling backups, backup on-demand, managing the backup archive, and restoring from backup.

You must create an S3 bucket or a Blob storage backup folder before configuring the database backup utility.
Run this tool as a root user.
  1. Specify the following command from the database scripts path (/opt/arcsight-db-tools/scripts):

    ./db_backup.sh config
  2. Select the communal storage.

  3. Specify the values for the fields based on your requirement. Following are the possible scenarios:

    • For S3 storage:

    Scenario Fields
    Using IAM role authentication and S3 settings are saved
    1. Enter y to use the IAM role authentication, when prompted.

    2. Specify the S3 backup bucket name.

    3. Specify the path to S3 backup folder.

    4. Specify the path to the locking system.

    5. Specify the number of historical backups to be retained in addition to the most recent backup.

    Not using IAM role authentication and S3 settings are saved
    1. Enter n to not use the IAM role authentication, when prompted.

    2. Specify the S3 server access key.

    3. Specify the S3 server password.

    4. Specify the S3 backup server.

    5. Specify the S3 server backup port.

    6. Specify if TLS needs to be enabled or disabled.

    7. Specify the S3 backup server access key.

    8. Specify the S3 backup server password.

    9. Specify the S3 backup bucket name.

    10. Specify the path to S3 backup folder.

    11. Specify the path to the locking system.

    12. Specify the number of historical backups to be retained in addition to the most recent backup.

    Using IAM role authentication and S3 settings are not saved
    1. Enter y to use the IAM role authentication, when prompted.

    2. Specify the S3 server.

    3. Specify the S3 server port.

    4. Specify if TLS needs to be enabled or disabled.

    5. Specify the S3 backup bucket name.

    6. Specify the path to S3 backup folder.

    7. Specify the path to the locking system.

    8. Specify the number of historical backups to be retained in addition to the most recent backup.

    Not using IAM role authentication and S3 settings are not saved
    1. Enter n to not use the IAM role authentication, when prompted.

    2. Specify the S3 server.

    3. Specify the S3 server port.

    4. Specify if TLS needs to be enabled or disabled.

    5. Specify the S3 server access key.

    6. Specify the S3 server password.

    7. Specify the S3 backup server.

    8. Specify the S3 server backup port.

    9. Specify if TLS needs to be enabled or disabled for the backup server.

    10. Specify the S3 backup server access key.

    11. Specify the S3 backup server password.

    12. Specify the S3 backup bucket name.

    13. Specify the path to S3 backup folder.

    14. Specify the path to the locking system.

    15. Specify the number of historical backups to be retained in addition to the most recent backup.

Backing Up the Database

To create a new backup, run the following command from the database scripts path (/opt/arcsight-db-tools/scripts):

./db_backup.sh backup

Scheduling Automatic Backups

Micro Focus recommends that you schedule backups to run every hour. To schedule a backup, use the following command from the database scripts path (/opt/arcsight-db-tools/scripts):

./db_backup.sh schedule '<crontab_expression>'

For example:

./db_backup.sh schedule '0 * * * *'

Required parameter: