Pre-Upgrade Backups
Take OS snapshots, index backups, and database dumps before upgrading.
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:
- 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.
- 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#
- Backup the Signature Tables: Execute the following commands to back up the
ssh_producerandshell_producertables:
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:
-
Verify that all configuration files stored in the OS DB are also available in the OpenSearch-artifact folder.
-
Add any missing files into the artifact package before initiating the upgrade.
-
Validate the OpenSearch-artifact folder to ensure all required configuration files are included.