postgres: migrate to backups via the barman plugin
This commit is contained in:
15
postgres/config/backup/objectstore.yaml
Normal file
15
postgres/config/backup/objectstore.yaml
Normal 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
|
||||||
@@ -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
|
||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user