postgres: migrate to backups via the barman plugin

This commit is contained in:
2026-03-16 17:47:21 -04:00
parent 5f939e121b
commit 9281d2f089
4 changed files with 23 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
apiVersion: barmancloud.cnpg.io/v1
kind: ObjectStore
metadata:
name: truenas-s3
spec:
configuration:
destinationPath: "s3://weyma-talos-shared-pgsql-new/"
endpointURL: http://10.105.15.20:9000
s3Credentials:
accessKeyId:
key: s3AccessKey
name: s3-backup-creds
secretAccessKey:
key: s3SecretKey
name: s3-backup-creds

View File

@@ -6,4 +6,7 @@ spec:
schedule: "0 0 4 * * *" schedule: "0 0 4 * * *"
backupOwnerReference: self backupOwnerReference: self
cluster: cluster:
name: weyma-pgsql name: weyma-pgsql
method: plugin
pluginConfiguration:
name: barman-cloud.cloudnative-pg.io

View File

@@ -11,17 +11,10 @@ spec:
size: 50Gi size: 50Gi
storageClass: rook-ceph-block storageClass: rook-ceph-block
backup: plugins:
barmanObjectStore: - name: barman-cloud.cloudnative-pg.io
destinationPath: "s3://weyma-talos-shared-pgsql-new/" parameters:
endpointURL: http://10.105.15.20:9000 barmanObjectName: truenas-s3
s3Credentials:
accessKeyId:
key: s3AccessKey
name: s3-backup-creds
secretAccessKey:
key: s3SecretKey
name: s3-backup-creds
inheritedMetadata: inheritedMetadata:
labels: labels: