From 779de2cdb191041725ea7d074b96f3423654a43c Mon Sep 17 00:00:00 2001 From: Martyn Ranyard Date: Mon, 30 Jun 2025 13:26:42 +0000 Subject: [PATCH] Add the backup command and fix the sync issue maybe Signed-off-by: Martyn Ranyard --- kustomized-helms/pg4nc/statefulset.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kustomized-helms/pg4nc/statefulset.yaml b/kustomized-helms/pg4nc/statefulset.yaml index 2f57499..bb94061 100644 --- a/kustomized-helms/pg4nc/statefulset.yaml +++ b/kustomized-helms/pg4nc/statefulset.yaml @@ -3,6 +3,8 @@ kind: StatefulSet metadata: name: pg4nc-postgres namespace: nextcloud + annotations: + k8up.io/backupcommand: /usr/bin/pg_dumpall -U nextcloud spec: template: spec: @@ -12,7 +14,7 @@ spec: - name: PGDATA $patch: delete securityContext: - fsGroup: 0 + $patch: delete --- apiVersion: apps/v1 kind: StatefulSet