From dc6e89c08a723d017f40ffad7cf3a442dd125ce5 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 14 Jan 2021 20:38:41 +0100 Subject: [PATCH] add pgdump for k8up --- docspell/postgres/statefulset.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docspell/postgres/statefulset.yaml b/docspell/postgres/statefulset.yaml index e0a5201..5501776 100644 --- a/docspell/postgres/statefulset.yaml +++ b/docspell/postgres/statefulset.yaml @@ -15,6 +15,8 @@ spec: metadata: labels: app: postgres + annotations: + k8up.syn.tools/backupcommand: /bin/bash -c 'PGPASSWORD=${POSTGRES_PASSWORD} pg_dump -U ${POSTGRES_USER} -Fc ${POSTGRES_DB}' spec: terminationGracePeriodSeconds: 10 containers: