mirror of
https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
synced 2026-08-20 23:16:49 +00:00
Found while building the VPS replica clusters (Phase 2): all three CNPG clusters' backup.barmanObjectStore blocks only configure continuous WAL archiving. CNPG's bootstrap.recovery needs at least one real Backup object in the object store before it has anything to restore - 'no target backup found', confirmed live against pg-authentik. This gap was systemic (gitlab has it too, not fixed here - out of scope for tonight, no VPS standby depends on it). immediate: true fires one backup right away in addition to the daily 01:00 schedule, to unblock the in-progress VPS restore now rather than waiting up to 24h for the first scheduled run.
17 lines
441 B
YAML
17 lines
441 B
YAML
---
|
|
# Same gap/fix as infrastructure/authentik/manifests/scheduled-backup.yaml -
|
|
# see that file for the full explanation. WAL-only barmanObjectStore
|
|
# config has no restorable base backup without this.
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
kind: ScheduledBackup
|
|
metadata:
|
|
name: pg-n8n-backup
|
|
namespace: n8n
|
|
spec:
|
|
schedule: "0 1 * * *"
|
|
backupOwnerReference: self
|
|
immediate: true
|
|
method: barmanObjectStore
|
|
cluster:
|
|
name: pg-n8n
|