BMC Helix IT Operations Management(ITOM) OnPrem: How to check what retention is set for backup for versioning enabled bucket in MinIO? |
The retention is automatically configured based on the settings in "helix-on-prem-deployment-manager/utilities/disaster-recovery/dr-configs/disaster-recovery.config". For example, if DR_MAX_BACKUP_TO_RETAIN=1, and this represents one day, then when the next backup completes, the earlier backup will be cleared. For PostgreSQL data cleanup, ILM (Index Lifecycle Management) policies are also set on the bucket. To review what retention is set, please follow the below steps: Example: 1. Log in to the MinIO pod: kubectl exec -it minio-0 -n itomwmk bash Run: mc --config-dir /bitnami/minio/data/.mc --quiet --insecure alias set localminio http://minio:9000 admin bmcAdm1n Example: minio-0:/opt/bitnami/minio-client/bin$ mc --config-dir /bitnami/minio/data/.mc --quiet --insecure alias set localminio http://minio:9000 admin bmcAdm1n Added `localminio` successfully. 2. List buckets: mc --config-dir /bitnami/minio/data/.mc ls localminio minio-0:/opt/bitnami/minio-client/bin$ mc --config-dir /bitnami/minio/data/.mc ls localminio [2025-03-02 11:11:43 UTC] 0B ade-infra-clients/ [2025-03-02 11:38:51 UTC] 0B ade-platform-ans-poc/ [2025-03-02 11:18:22 UTC] 0B ade-platform-ucs-poc/ [2025-03-02 15:33:41 UTC] 0B helixdr-backup/ 3. Run the below command with bucket name (e.g., helixdr-backup): minio-0:/opt/bitnami/minio-client/bin$ mc --config-dir /bitnami/minio/data/.mc ilm rule list localminio/helixdr-backup Output Example: ┌───────────────────────────────────────────────────────────────────────────────────────┐ │ Expiration for latest version (Expiration) │ ├──────────────────────┬─────────┬────────┬──────┬────────────────┬─────────────────────┤ │ ID │ STATUS │ PREFIX │ TAGS │ DAYS TO EXPIRE │ EXPIRE DELETEMARKER │ ├──────────────────────┼─────────┼────────┼──────┼────────────────┼─────────────────────┤ │ cv4qdcd1fidnfg423js0 │ Enabled │ - │ - │ 2 │ false │ │ cv4qdcl1fidn0jc0krhg │ Enabled │ - │ - │ 0 │ true │ └──────────────────────┴─────────┴────────┴──────┴────────────────┴─────────────────────┘ ┌─────────────────────────────────────────────────────────────────────────────────┐ │ Expiration for older versions (NoncurrentVersionExpiration) │ ├──────────────────────┬─────────┬────────┬──────┬────────────────┬───────────────┤ │ ID │ STATUS │ PREFIX │ TAGS │ DAYS TO EXPIRE │ KEEP VERSIONS │ ├──────────────────────┼─────────┼────────┼──────┼────────────────┼───────────────┤ │ cv4qdcd1fidnfg423js0 │ Enabled │ - │ - │ 1 │ 0 │ │ cv4qdcl1fidn0jc0krhg │ Enabled │ - │ - │ 1 │ 0 │ └──────────────────────┴─────────┴────────┴──────┴────────────────┴───────────────┘ |