Skip to content

Backup through Velero

Velero is a tool that you can use to back up your Kubernetes namespaces as an additional disaster recovery measure.

Velero allows you to backup and restore the entire namespace used to run IEM.

Prerequisites

Before starting this how-to, make sure you have completed the following prerequisites:

  • Install the Velero client and server in version 1.9 or above.
    For more information, see Velero documentation.

  • Consider supported storage locations of velero.

  • Create a Storage Location for Backups.

Note
The process of creating a recovery cluster may vary depending on the platform that you use to host your Kubernetes cluster. For more information, refer to the documentation of Velero and Kubernetes.

Creating a Velero backup

To create a backup with Velero, follow these steps:

  1. Stop the Industrial Edge System by scaling down all statefulsets to 0.

    >**Note**
    </br>This process will be simplified in future releases.
    
  2. Create the backup by entering the following command:

    velero create backup iem
    

    Note
    The above command creates a backup of all your namespaces. If you only want to back up a specific namespace, use the include-namespace flag.

  3. Verify that the backup is complete by entering the following command:

    velero backup describe iem
    
  4. Scale up the IEM installation again by setting the replicasets to statefulsets.

Restoring a Velero backup

To restore a backup that you created with Velero, follow these steps:

  1. Restore the backup by entering the following command:

    velero restore create --from-backup iem
    

    Note
    As a best practice, it is recommended to restore all resources, as in the example above. Restoring only specific resources can result in unpredictable behavior. However, if you only want to restore a specific Kubernetes resource, use the –status-include-resources flag, for example, –status-include-resources=portal.