From acfce6645eb82e2c3797a9441abce9173c0a0b04 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Sun, 25 Oct 2026 17:46:03 +0100 Subject: [PATCH] velero: skip PVCs in Longhorn's no-backup group --- velero/skip-emptydir-policy.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/velero/skip-emptydir-policy.yaml b/velero/skip-emptydir-policy.yaml index 74b094b..efcf12d 100644 --- a/velero/skip-emptydir-policy.yaml +++ b/velero/skip-emptydir-policy.yaml @@ -1,6 +1,8 @@ # Volume policy for the backup schedules. emptyDir volumes hold nothing # worth keeping, and backing them up fails when the pod is gone before its # volume is read, as happens with Velero's own repository maintenance jobs. +# PVCs in Longhorn's no-backup group (caches, such as immich's ML models) +# are skipped too. apiVersion: v1 kind: ConfigMap metadata: @@ -14,3 +16,8 @@ data: - emptyDir action: type: skip + - conditions: + pvcLabels: + recurring-job-group.longhorn.io/no-backup: enabled + action: + type: skip