Whitepaper: Trilio Site Recovery (TSR) — DR for Kubernetes-native VMs

OpenShift AI Backup: Tutorial & Best Practices

Pillar page of an 11-chapter series. Lab: DC11 management cluster (OpenShift 4.22.1) and rhoai-dr hosted cluster (OpenShift 4.21.35), Red Hat OpenShift AI 3.5.1 to 3.5.2, Trilio for Kubernetes 5.4.0 to 5.4.1.

Most enterprises have run AI pilots. Fewer have turned them into production systems on Red Hat OpenShift AI. The ones that did are now asking about OpenShift AI backup. GitOps can rebuild the operators and the configuration. It cannot rebuild a two day training run, an approved model version, or the memory of a RAG assistant. I tested, in a real lab, what it takes to protect that state with Trilio for Kubernetes. This page explains why Red Hat’s platform is a sensible bet and which state matters. Then it maps eleven chapters, one tested use case each. Two tables sum up the concepts and the best practices those tests proved.

Why Red Hat is betting on OpenShift AI

Red Hat’s announcement of Red Hat AI 3 frames the problem plainly. Data privacy, cost control and the sheer number of models are what keep teams stuck in experiments (Red Hat press release, Oct 2025).

Red Hat’s answer is not a new silo. It is the platform enterprises already run their applications on, extended for AI:

  • One platform for the whole AI lifecycle. Notebooks, pipelines, training, serving, a model registry and, since 3.x, the foundations for agents. It runs on premises, in public clouds, at the edge and disconnected.

  • Production inference at scale. Red Hat AI 3 made distributed inference with llm-d generally available. Serving large models becomes an operations problem OpenShift already knows.

  • Open choice. Red Hat positions the platform for any model, any hardware and any environment (Techzine).

  • A path to agents. The 3.x line adds Llama Stack based APIs and building blocks for agentic applications.

  • Show, don’t tell. Red Hat publishes ready-to-deploy AI quickstarts for real business cases (Red Hat blog). I use two of them in this series.

The bet makes sense to me. AI is becoming just another workload, and enterprises want it under the same security and operations as everything else.

Why OpenShift AI backup is different from application backup

A platform that runs AI in production accumulates state that is expensive or impossible to recreate. Most of it is invisible from the dashboard. Here is what I found in my lab:

  • Experiment and run history in MLflow, and pipeline run history in the pipelines database.

  • The model registry: which version was approved, where it is stored, who registered it.

  • Vector databases and their embeddings, the memory of every RAG assistant.

  • Agent memory: conversations, stored responses and tool results kept by the agent runtime.

  • What data scientists build themselves: notebook code, training checkpoints, environments resolved at run time.

  • The platform itself: operators, the DataScienceCluster, queues, hardware profiles, GPU policies.

GitOps rebuilds the configuration, and you should use it. It cannot bring back a vector index built from documents that have since changed. It cannot bring back the conversation an auditor asks about.

Where your AI lives Blue: Git and GitOps can rebuild it. Orange: only a backup brings it back.
Where your AI lives Blue: Git and GitOps can rebuild it. Orange: only a backup brings it back.

How Trilio for Kubernetes protects an AI platform

Trilio for Kubernetes protects applications the way OpenShift AI is built: namespaces full of Kubernetes objects, operator custom resources and persistent volumes. A backup captures Notebooks, InferenceServices, RayClusters and database clusters together with their data.

Backups are consistent because of hooks. Before the snapshot, Trilio runs commands inside the application. A PostgreSQL CHECKPOINT, a MySQL FLUSH BINARY LOGS, a Qdrant snapshot, a SQLite WAL checkpoint, an etcd snapshot. The MLflow and model registry backup, RAG poisoning recovery, hosted control plane backup and AI agent memory backup chapters show the real hooks.

Backups go off-site and immutable, to object storage with Object Lock. Ransomware that takes the cluster cannot delete those copies with ordinary credentials. The RAG poisoning recovery chapter shows exactly where that guarantee ends.

Restores are flexible: the same namespace, a new one, another cluster, or only the volumes you choose. Namespaced roles keep each team inside its own projects. Trilio is certified for OpenShift and installed by OLM, like the rest of the platform.

I wrote every chapter from a real lab, and I say what did not work. Bugs in OpenShift AI or the quickstarts went to Red Hat. What I learned about Trilio went back to our product team.

The chapters: one tested use case each

Each chapter is one use case, tested end to end, with its own limits section.

Ch Chapter What it proves
1 OpenShift AI backup: tutorial and best practices Which AI state GitOps cannot rebuild, and what the other chapters proved.
2 Hands-on lab: back up and restore a data science project A data science project backed up and restored in place, step by step, on OpenShift AI 3.3.
3 Platform backup: delete the operator, bring it back The operator and its configuration, deleted in one second, were back in about eight minutes with the model answering.
4 MLflow and model registry backup Hooks bring the registry, MLflow and pipelines databases back clean, and WAL and binlog replay reach seconds before a mistake.
5 RAG poisoning recovery One selective restore of the vector store, from an Object Lock backup, brought the assistant back to 5 of 5 correct answers.
6 Ray checkpoint backup Workbench code, 31 Ray checkpoint files and the resolved package versions came back together after a full wipe.
7 Data scientist self-service restore A data scientist restored their own vector database in about three minutes, without a ticket, and could not touch other projects.
8 OpenShift AI disaster recovery Three AI projects came back on another cluster from immutable backups, each proven through its own app.
9 Hosted control plane backup A deleted hosted cluster came back with its data, PKI and node ports, and etcd restores need a revision bump.
10 lakeFS backup Losing one metadata table made the bucket anonymous; a restore of only that database (4m50s) and a password realign brought the history back.
11 AI agent memory backup Agent memory came back after ransomware in 3m09s and after poisoning in 3m13s; mixed restore points made it forget.

If you are new to the platform, start with the hands-on lab. If you have a specific risk, jump to its chapter.

OpenShift AI backup concepts

Concept What it means
Application-centric backup One backup of a whole application: its Kubernetes objects, operator custom resources and volumes, captured together.
Hook A command Trilio runs inside a pod around the snapshot, such as a PostgreSQL CHECKPOINT, so the files are consistent. Explained in the MLflow and model registry backup chapter.
Object Lock (governance vs compliance) An S3 setting that blocks deletes until a date. In governance mode, a key with the bypass permission can still delete; compliance mode stops even the account owner.
Isolated copy A restore into a new namespace, behind an egress NetworkPolicy, so the copy cannot write into production's WAL archive.
Selective restore Restoring only chosen objects, such as one volume and its Deployment, instead of the whole namespace.
Restore transform A JSON patch applied during the restore to rewrite cluster-specific values, such as a storage class or a route host.
Point-in-time recovery The Trilio backup as the base, plus replayed WAL or binlog archives, to reach any second after the backup.
Operator backup Backing up an operator through OLM together with its custom resources, so the platform restores in the right order.
Restore by location Restoring from a backup's path in the bucket, listed by the target browser, with no catalog to copy first.
etcd revision bump Restoring an etcd snapshot with a higher revision, so every Kubernetes client relists instead of missing events.

OpenShift AI backup best practices

Practice Proved in
Quiesce every database with its native hook, and set ignoreFailure false on the pre-hook. MLflow and model registry backup, hosted control plane backup, AI agent memory backup
Keep backups off-site on Object Lock, with a key that cannot bypass it. RAG poisoning recovery
Isolate any test restore before it starts. MLflow and model registry backup, OpenShift AI disaster recovery
Restore small: only the damaged store. RAG poisoning recovery, lakeFS backup, data scientist self-service restore
Restore related stores from the same backup. AI agent memory backup
Transform cluster-specific values, and exclude Jobs that re-run. Ray checkpoint backup, OpenShift AI disaster recovery
Back up the operator with its configuration, not only the projects. Platform backup
Prepare the DR cluster ahead of time, and test its storage with a restore. OpenShift AI disaster recovery
Let data scientists restore their own work with namespaced roles. Data scientist self-service restore
Prove recovery through the application, not through "Completed". "Completed" means every object was restored; whether the app works is an application check. OpenShift AI disaster recovery, lakeFS backup, AI agent memory backup

The pieces, in plain language

You do not need to know all of these to follow the series. Each chapter repeats the ones it uses.

Piece What it is for
OpenShift The Kubernetes platform everything runs on.
OpenShift AI Red Hat's AI platform on top of OpenShift: a dashboard and operators for the whole AI lifecycle.
Data science project A namespace the dashboard treats as an AI project.
Workbench A Jupyter environment where a data scientist writes code. Its files live on a persistent volume.
AI pipelines Repeatable multi-step workflows (Kubeflow Pipelines on Argo). Run history lives in a database.
Model serving KServe with vLLM or MLServer: turns a model file into an API.
Model registry The catalogue of approved model versions and where they are stored.
MLflow Records experiments: parameters, metrics and artifacts of every run.
Kueue Queues and quotas so teams share accelerators fairly.
Ray Distributed Python for training and data processing across many pods.
Vector database Stores text as numbers (embeddings) so an assistant can find relevant passages. Qdrant, Milvus, pgvector.
PostgreSQL / MySQL The databases behind the registry, MLflow and pipelines.
WAL / binlog The database's diary of every change. Replaying it brings a database to any point in time.
S3 object storage Where models, datasets and artifacts live. In this lab: S4, a small S3 server from Red Hat's AI team.
Immutable storage A bucket where objects cannot be deleted or overwritten until a date. Wasabi with Object Lock here.
Trilio for Kubernetes Backs up and restores applications on Kubernetes: backup plans, hooks, targets, restores.
Hosted Control Planes Runs a whole OpenShift cluster's control plane as pods inside another cluster.

The lab behind the series

Every chapter ran in a real lab. No slideware, no simulated outputs. The lab has two clusters:

  • DC11, the management cluster: OpenShift 4.22.1 on vSphere, three control plane nodes, five workers, no GPUs.

  • rhoai-dr, a hosted cluster on OpenShift Virtualization inside DC11, on OpenShift 4.21.35. It is the DR site and the cluster for the platform tests.

  • Red Hat OpenShift AI with pipelines, serving, registry, MLflow, Ray, Trainer, Feast and Kueue.

  • PostgreSQL by CloudNativePG and Red Hat’s MySQL 8 image, with WAL and binlog shipped to external S3.

  • Two Red Hat AI quickstarts: fraud detection with lakeFS (on PostgreSQL and MinIO), and the enterprise RAG assistant with agent mode on CPU.

  • Trilio for Kubernetes (certified operator), backing up to an immutable Wasabi bucket and a second on-site S3 target.

Both operators were on automatic OLM updates. During the series, OpenShift AI moved from 3.5.1 to 3.5.2 and Trilio for Kubernetes from 5.4.0 to 5.4.1. Each chapter states the versions it ran on.

OpenShift AI projects in the lab
OpenShift AI projects in the lab

Conclusion

OpenShift AI is a sound place to run AI in production. GitOps rebuilds its configuration, but the valuable state lives in databases, vector stores, checkpoints and agent memory. Trilio for Kubernetes protects that state consistently, off-site and immutable. Eleven chapters test one use case each, and the two tables above sum up what they proved. Start with the chapter that matches your risk.

Thank you for reading! I hope this series is useful for you.

Useful Links

OpenShift AI backup: all chapters

Picture of Rodolfo Casás

Rodolfo Casás

Rodolfo Casás is the Director of Product at Trilio with a special focus on cloud-native computing and virtualization, sovereign clouds, hybrid cloud strategies, telco and data protection.

Table of Contents