The MinIO stores backups from all the components. You can use the Kubernetes command to list the backups.

Examples to get the list of available backup:

  1. Connect to the node, using command:
    export KUBECONFIG=/root/.kube/<KubeConfig File>
  2. To get the list of available backups, run the following command:
    ~> kubectl get backup.tcx.vmware.com
    NAME          STATUS       TIME STARTED               TIME COMPLETED             
    backup-name   SUCCESSFUL   2022-05-13T21:02:44.726Z   2022-05-13T21:02:48.817Z
    Note: The backup-name includes the status and the timestamp, when the backup was created and completed. If there is any error during the backup, it will be part of the MESSAGE.
  3. To get the list of available scheduled backup, run the following command:
    ~> kubectl get scheduledbackup.tcx.vmware.com
    NAME                   STATUS      SCHEDULE     
    scheduledbackup-name   SCHEDULED   0 23 * * *
    Note: The status and the schedule displays as part of the MESSAGE.
  4. To get the list of the available backup in the sorted order by their creation time, run the following command:
    kubectl get backup.tcx.vmware.com --sort-by=.metadata.creationTimestamp
  5. To get the list of the available backup sorted by feature:
    For example, if you want to list of backups for the dashboard feature, run the following command:
    ~> kubectl get backup.tcx.vmware.com -l feature=dashboard
    NAME          STATUS       TIME STARTED               TIME COMPLETED             MESSAGE
    backup-name   SUCCESSFUL   2022-05-13T21:02:44.726Z   2022-05-13T21:02:48.817Z
    Note: This command works only when, you have added a label in your backup custom resource.