diff --git a/infrastructure/addons/cnpg/postgres-cluster.yaml b/infrastructure/addons/cnpg/postgres-cluster.yaml index 6418ce0..3a2a98c 100644 --- a/infrastructure/addons/cnpg/postgres-cluster.yaml +++ b/infrastructure/addons/cnpg/postgres-cluster.yaml @@ -40,4 +40,21 @@ spec: tolerations: - key: node-role.kubernetes.io/control-plane operator: Exists - effect: NoSchedule \ No newline at end of file + effect: NoSchedule + + backup: + barmanObjectStore: + destinationPath: "s3://s3.us-east-005.backblazeb2.com/HetznerTerra/rancher-backups/" + endpointURL: "https://s3.us-east-005.backblazeb2.com" + s3Credentials: + accessKeyId: + name: b2-credentials + key: B2_ACCOUNT_ID + secretAccessKey: + name: b2-credentials + key: B2_APPLICATION_KEY + wal: + compression: lzop + data: + compression: lzop + encryption: AES256 \ No newline at end of file