prole/deploy/opentofu/k3s/manifests/knoe/knoe-db-scheduled-backup.yaml
chrisfu 52667c1e5d feat(backup): add CNPG ScheduledBackup manifest; fix 6-field cron schedule
Adds the ScheduledBackup CR to source control. Fixes schedule from
5-field to 6-field format (0 0 3 * * *) — CNPG requires seconds as
first field. The broken schedule caused the reconcile loop that
generated 746 stale Backup CRs. Deleted 7 orphaned GitLab Garage
buckets (~8.5 GB) and resumed daily backups.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-08 01:35:49 -07:00

19 lines
468 B
YAML

apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: knoe-db-scheduled-backup
namespace: knoe-db
spec:
cluster:
name: knoe-db
# Six-field cron: seconds minutes hours day month weekday
# Fires daily at 03:00:00 UTC
schedule: "0 0 3 * * *"
method: plugin
pluginConfiguration:
name: barman-cloud.cloudnative-pg.io
parameters:
barmanObjectName: knoe-db-barman-objectstore
immediate: true
backupOwnerReference: self