Backing up the DevOps Test Hub data on Azure Kubernetes Service

You might want to back up the HCL DevOps Test Hub (Test Hub) data to protect against data corruption or malicious attacks. You might also want to back up the data when you want to upgrade to a new version of Test Hub.

Before you begin

You must have completed the following tasks:

  • Been assigned the same role that was required to install and uninstall Test Hub.

  • Installed Test Hub and all of the Test Hub pods are in Running state.

  • Communicated to the users that Test Hub might be unavailable for some time until the process is complete.

  • Prepared your cluster to store the backed-up data by using Velero. See Preparing the Azure Kubernetes Service cluster to back up the DevOps Test Hub data.

About this task

If you plan to back up the data immediately after you prepared your Azure Kubernetes Service (AKS) cluster, then you must go to Step 3 to start the backup process.

Procedure

  1. Run the following command to log in to AKS interactively:
    az login
    The command-line interface opens a browser and displays the Log-in page of AKS.
  2. Sign in with your AKS account credentials.
  3. Run the following command to start the backup process of the Test Hub data:
    velero backup create {backup_file_name} --include-namespaces=test-system --default-volumes-to-restic
    Note: You must replace {backup_file_name} with the name that you want to provide for the backup file.
    Tip: You can run the velero backup describe {backup_file_name} --details command to verify the progress of the backup operation.

Results

You have backed up the data of Test Hub on AKS.

What to do next

You can restore the server data. See Restoring the DevOps Test Hub data on Azure Kubernetes Service.