Files
k8scd/velero/daily-backup.yaml
Ruben Hensen 2c4164ad22 velero: skip emptyDir volumes in scheduled backups
The nightly backup of 2026-10-23 ended PartiallyFailed because a repository maintenance job pod finished while Velero was reading its emptyDir volumes. emptyDir holds nothing worth restoring, so a volume policy now skips it for both schedules.
2026-10-23 17:12:12 +02:00

17 lines
455 B
YAML

apiVersion: velero.io/v1
kind: Schedule
metadata:
name: daily-backup
annotations:
velero.io/csi-volumesnapshot-class_driver.longhorn.io: "longhorn-backup-vsc"
spec:
schedule: "0 1 * * *" # Daily at 1 AM
template:
ttl: 720h # 30 days ONLY h, d/w for day and week do not work!
defaultVolumesToFsBackup: true
snapshotVolumes: true
snapshotMoveData: true
resourcePolicy:
kind: configmap
name: skip-emptydir-policy