Skip to content

Pre-Upgrade Backups

Take OS snapshots, index backups, and database dumps before upgrading.

2 min read Updated SS

Important: These backups are for the upgrade to HEAL v2.3.4; to upgrade HEAL v2.3.4 to v2.4.1, follow Upgrading to HEAL v2.4.1 instead, because v2.4.1 needs a roll-up table change before the Percona backup.

Both Standalone and HA#

Follow the below step on both standalone and HA environment:

  1. Take OS Snapshot: It is recommended to create an OS snapshot before proceeding with the upgrade. Mandatory to take critical indices backup. Refer to: OpenSearch document.
  2. Backup Databases: Please take Percona SQL backups of the following databases, appsone

appsone

mysqldump -h <server_ip> -u <username> -p'<password>' -P 3307 --ssl-mode=disabled --routines --events --triggers appsone > appsone.sql

appsonekeycloak

mysqldump -h <server_ip> -u <username> -p'<password>' -P 3307 --ssl-mode=disabled --routines --events --triggers appsonekeycloak > appsonekeycloak.sql

appsone_mle

mysqldump -h <server_ip> -u <username> -p'<password>' -P 3307 --ssl-mode=disabled --routines --
events --triggers appsone_mle > appsone_mle.sql

grafana

mysqldump -h <server_ip> -u <username> -p'<password>' -P 3307 --ssl-mode=disabled --routines --
events --triggers grafana > grafana.sql

These SQL backups are necessary to facilitate the rollback feature if required.

Note: If the AD Integrated user exists, follow the steps in the section: Migration of AD Integrated Users.

Backup Script Signatures#

  1. Backup the Signature Tables: Execute the following commands to back up the ssh_producer and shell_producer tables:

ssh_producer

mysqldump --no-create-info -h <perconaIP> -P <port> -u <username> -p'<passwd>' --lock-
tables=false appsone ssh_producer > ssh_producer_old.sql

shell_producer

mysqldump --no-create-info -h <perconaIP> -P <port> -u <username> -p'<passwd>' --lock-
tables=false appsone shell_producer > shell_producer_old.sql

Replace <perconaIP>, <port>, <username>, and <passwd> with the appropriate values.

OpenSearch Files Backup#

The upgrade process creates a backup from the OpenSearch-artifact. Any configuration files missing from the artifact but present in the OS DB may not be backed up post the upgrade.

Hence, follow the below steps:

  1. Verify that all configuration files stored in the OS DB are also available in the OpenSearch-artifact folder.

  2. Add any missing files into the artifact package before initiating the upgrade.

  3. Validate the OpenSearch-artifact folder to ensure all required configuration files are included.