From 0e7b8cbb6268dac6d141ea4ac9c435267fd7c815 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Sun, 25 Oct 2026 12:20:47 +0100 Subject: [PATCH] Back up all Gramps databases through CNPG --- apps/backup/postgresql/gramps/kustomization.yaml | 8 ++++---- apps/gramps-postgresql/cluster/cluster.yaml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/backup/postgresql/gramps/kustomization.yaml b/apps/backup/postgresql/gramps/kustomization.yaml index 08ebf97..3dfb2f9 100644 --- a/apps/backup/postgresql/gramps/kustomization.yaml +++ b/apps/backup/postgresql/gramps/kustomization.yaml @@ -19,9 +19,9 @@ patches: - name: pg-dump env: - {name: BACKUP_TARGET, value: gramps} - - {name: BACKUP_MODE, value: database} + - {name: BACKUP_MODE, value: all} - {name: PGHOST, value: gramps-cnpg-rw} - - {name: PGUSER, value: gramps} - - {name: PGDATABASE, value: gramps} + - {name: PGUSER, value: postgres} + - {name: PGDATABASE, value: postgres} - name: PGPASSWORD - valueFrom: {secretKeyRef: {name: gramps-postgresql, key: password}} + valueFrom: {secretKeyRef: {name: gramps-cnpg-superuser, key: password}} diff --git a/apps/gramps-postgresql/cluster/cluster.yaml b/apps/gramps-postgresql/cluster/cluster.yaml index 27072f5..cbe798d 100644 --- a/apps/gramps-postgresql/cluster/cluster.yaml +++ b/apps/gramps-postgresql/cluster/cluster.yaml @@ -5,6 +5,7 @@ metadata: namespace: gramps spec: instances: 1 + enableSuperuserAccess: true imageName: ghcr.io/cloudnative-pg/postgresql:18.6-standard-trixie bootstrap: initdb: