G.1 Fault Recovery Procedures - DB Backup and Restore
Introduction
This section describes the backup and restore procedures specific to Console. The instructions are for the operator to take Console database's backup and restore the database on a different cluster. These instructions can be used for Fault Recovery of Console and are part of the Fault Recovery guide.
The commands used for these procedures are given by the MySQL NDB Cluster.
Prerequisite
See the Preupgrade Tasks and Pre-rollback Tasks sections before performing backup or restore procedure.Backup Procedure
CNC Console Database BackupIf the Console database backup is required, do the following:
Periodically keep backup of CNC Console Database using the DB backup procedure and store it. For more information see CNCC IAM DB Backup.
CNC Console Deployment Backup
- Keep a backup of the occncc_custom_values_<version>.yaml file that was used for last installation or upgrade of Console.
- Docker images used during the last installation or upgrade must be retained in the external data source.
Restore Procedure
CNC Console Database Restore
Note:
Not applicable for OCI deployment.Follow the restore procedure decsribed in the CNCC IAM DB Rollback or Restore section.
CNC Console Deployment Restore
- Run the following command to uninstall the existing CNC Console
deployment (if
needed)
helm uninstall <deployment name> --namespace <deployment namespace>
For example:helm uninstall cncc --namespace cncc
- Use the backed up copy of occncc_custom_values_<version>.yaml file taken as part of CNC Console custom_values.yaml Backup to install the Console.