diff --git a/apps/base/customer1/backup-cronjob.yaml b/apps/base/customer1/backup-cronjob.yaml new file mode 100644 index 0000000..bc2bb2b --- /dev/null +++ b/apps/base/customer1/backup-cronjob.yaml @@ -0,0 +1,12 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: ScheduledBackup +metadata: + name: daily-full-backup + namespace: customer1 +spec: + schedule: "0 3 * * *" # Daily at 03:00 UTC (adjust cron as needed) + suspend: false + immediate: false # No immediate run (or true if you want one now too) + backupOwnerReference: self + cluster: + name: customer1-pgdb diff --git a/apps/base/customer1/kustomization.yaml b/apps/base/customer1/kustomization.yaml index ea19146..3b613eb 100644 --- a/apps/base/customer1/kustomization.yaml +++ b/apps/base/customer1/kustomization.yaml @@ -12,4 +12,4 @@ resources: - pg-cluster-customer1.yaml - customer1-db-credentials.yaml - apigateway.yaml - + - backup-cronjob.yaml