Add the backup command and fix the sync issue maybe

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2025-06-30 13:26:42 +00:00
parent 890eeece14
commit 779de2cdb1

View file

@ -3,6 +3,8 @@ kind: StatefulSet
metadata: metadata:
name: pg4nc-postgres name: pg4nc-postgres
namespace: nextcloud namespace: nextcloud
annotations:
k8up.io/backupcommand: /usr/bin/pg_dumpall -U nextcloud
spec: spec:
template: template:
spec: spec:
@ -12,7 +14,7 @@ spec:
- name: PGDATA - name: PGDATA
$patch: delete $patch: delete
securityContext: securityContext:
fsGroup: 0 $patch: delete
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: StatefulSet kind: StatefulSet