diff --git a/apps/infra/data/cloudnative-pg/cnpg17-cluster-hk.yaml b/apps/infra/data/cloudnative-pg/cnpg17-cluster-hk.yaml index 7ffd774..578f12a 100644 --- a/apps/infra/data/cloudnative-pg/cnpg17-cluster-hk.yaml +++ b/apps/infra/data/cloudnative-pg/cnpg17-cluster-hk.yaml @@ -41,3 +41,19 @@ spec: parameters: barmanObjectName: cnpg17-objectstore-hw serverName: cnpg17-cluster-hk + +--- +apiVersion: postgresql.cnpg.io/v1 +kind: ScheduledBackup +metadata: + name: cnpg17-cluster-hk-backups + namespace: infra-data +spec: + schedule: "0 0 0 * * *" + immediate: true + backupOwnerReference: self + method: plugin + pluginConfiguration: + name: barman-cloud.cloudnative-pg.io + cluster: + name: cnpg17-cluster-hk \ No newline at end of file diff --git a/apps/infra/data/cloudnative-pg/cnpg17-cluster-sh.yaml b/apps/infra/data/cloudnative-pg/cnpg17-cluster-sh.yaml index e099158..5d58483 100644 --- a/apps/infra/data/cloudnative-pg/cnpg17-cluster-sh.yaml +++ b/apps/infra/data/cloudnative-pg/cnpg17-cluster-sh.yaml @@ -40,4 +40,20 @@ spec: isWALArchiver: true parameters: barmanObjectName: cnpg17-objectstore-hw - serverName: cnpg17-cluster-sh \ No newline at end of file + serverName: cnpg17-cluster-sh + +--- +apiVersion: postgresql.cnpg.io/v1 +kind: ScheduledBackup +metadata: + name: cnpg17-cluster-sh-backups + namespace: infra-data +spec: + schedule: "0 0 0 * * *" + immediate: true + backupOwnerReference: self + method: plugin + pluginConfiguration: + name: barman-cloud.cloudnative-pg.io + cluster: + name: cnpg17-cluster-sh \ No newline at end of file