Backing Up the ArcSight Database

You can manually create or automatically schedule a database backup before upgrading the ArcSight Platform. Follow this section to successfully back up the database.

Understanding the Database Backup Process

This section provides an introduction to the backup process:

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.

Backup Terminology

(Conditional) Prerequisites to Configuring Database Backup

If you have a cloud deployment (AWS or Azure), before you configure the database backup, ensure your cloud administrator creates the communal storage backup location.

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.

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. On database node1, execute the following command from the database scripts directory, located by default at /opt/arcsight-db-tools/scripts:

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

  3. Specify the values for the fields based on your storage type.

    • For S3 storage:

      Scenario Fields
      Using IAM role
      1. Specify your S3 server:

      2. Specify S3 server port [443]:

      3. Is TLS enabled(y/n):

      4. Specify your S3 backup bucket:

      5. Specify your S3 backup folder path:

      6. Specify your locking system path [/tmp]:

      7. Specify the number of historical backups to retain in addition to the most recent backup: Are the values correct?(y/n):

    • For Blob storage:

      The Blob account used for backup must be the same account as used for the live database, otherwise you will observe an error.
      Using managed identity to authenticate
      1. Specify the account name.

      2. Enter y to use the managed identity to authenticate with Azure storage container.

      3. Specify the path to the Blob storage 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 managed identity to authenticate
      1. Specify the account name.

      2. Enter n to not use the managed identity to authenticate with Azure storage container.

      3. Specify the account key.

      4. Specify the path to the Blob storage backup folder.

      5. Specify the path to the locking system.

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

Backing Up the Database

To back up the ArcSight Database, complete the following steps:

  1. Prepare the backup configuration file.

  2. Run the following command from the database scripts directory, located by default at /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 directory, located by default at /opt/arcsight-db-tools/scripts:

./db_backup.sh schedule '<crontab_expression>'

where <crontab_expression> represents the time that you want to set for the scheduled backup.

For example:

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