From 9076e1ea038027295c04e35b514f37708fd0dbbc Mon Sep 17 00:00:00 2001 From: nold Date: Wed, 14 Dec 2022 10:16:32 +0100 Subject: [PATCH] add(hass): backup --- projects/homeassistant/manifests/postgre.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/projects/homeassistant/manifests/postgre.yaml b/projects/homeassistant/manifests/postgre.yaml index 0b3492d4..d8a1004c 100644 --- a/projects/homeassistant/manifests/postgre.yaml +++ b/projects/homeassistant/manifests/postgre.yaml @@ -40,3 +40,14 @@ spec: password: name: hass-postgres key: postgresql-password +--- +apiVersion: postgresql.cnpg.io/v1 +kind: ScheduledBackup +metadata: + name: homeassistant-db-backup + namespace: homeassistant +spec: + schedule: "0 0 0 * * *" + backupOwnerReference: self + cluster: + name: homeassistant-db