Setting up the backup - EcoSys - 2.0 - Installation & Upgrade - Hexagon PPM

EcoSys Connect Installation and Configuration (Microk8s Kubernetes)

English (United States)
Search by Category
Installation & Upgrade
EcoSys Version

The following steps are used to setup minio and velero which are used to backup the required data.

  1. Go to the installer/microk8s directory

  2. Edit the file and customize the Velero settings




    The CRON Expression used to schedule backups.

    Default = 0 7 * * *
    This is daily at 7 AM


    The # of hours the backup will be saved by Velero.

    Default = 720h0m0s

  3. Install minio into the cluster by running ‘./ <minio-password> <minio-storage-path>’. Example, ‘./ mpass1234 /home/user/minio-store’

    • The minio-password must be 8 characters or longer. The minio-storage-path needs to exist before running the command.

    • Minio does not allow the minio-storage-path to be on the root disk of the host.

  4. Install Velero into the cluster by running ‘./’

  5. When the script completes, the following message is displayed.

    To get the velero status, the microk8s needs to be added to the beginning of the command to see status. Example: ‘microk8s kubectl logs deployment/velero -n velero’

  6. Run the following command to ensure that Velero pod is started, run microk8s kubectl get pods -n velero’

  7. The installation of Velero also creates an initial backup. To see all backups from the install/microk8s directory, run ‘velero backup get’. This will list all backups, their statuses, and retention policies.

  8. Additional backups will be taken based on the ‘VELERO_SCHEDULE_CRON_EXPR’. To create a backup manually, run ‘velero backup create <name>’

  9. To preserve the backup files on a second server, the contents of the minio-storage-path need to be copied to a backup host.

    1. To automate this process, edit the installer/microk8s/

      1. Set MINIO_STORE to the minio-storage-path

      2. Set the BACKUP_HOST, BACKUP_HOST_USER, BACKUP_HOST_PATH to a secondary server that

        If the minio-storage-path is shared from a different host in the first place (NFS, SAMBA), then it’s automatically protected from a microk8s host failure.