Backing up the server data on Azure Kubernetes Service

You might want to back up the server data to protect against data corruption or malicious attacks. You might also want to back up the server data when you want to upgrade to a new version of the server software.

Before you begin

You must have completed the following tasks:

  • Been assigned the same role that was required to install and uninstall the server software.

  • Installed the server software and all of the HCL OneTest Server pods are in Running state.

  • Communicated to the users that HCL OneTest Server 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 server 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 HCL OneTest Server 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 HCL OneTest Server on AKS.

What to do next

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