fix cnpg backups

This commit is contained in:
Aaron Riedel 2025-02-20 20:04:05 +01:00
parent ba9eea8e28
commit c33b788c50
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -6,16 +6,16 @@ spec:
instances: 3 instances: 3
storage: storage:
size: 1Gi size: 1Gi
# bootstrap: bootstrap:
# recovery: recovery:
# source: clusterBackup source: clusterBackup
#recoveryTarget: #recoveryTarget:
# targetTime: "2025-02-12 21:00:00.00000+00" # targetTime: "2025-02-12 21:00:00.00000+00"
backup: backup:
barmanObjectStore: barmanObjectStore:
destinationPath: "s3://openproject/backups" destinationPath: "s3://openproject/backups"
endpointURL: "https://fsn1.your-objectstorage.com" endpointURL: "https://fsn1.your-objectstorage.com"
serverName: "new-openproject" serverName: "newnew-openproject" # in case of restore change this
s3Credentials: s3Credentials:
accessKeyId: accessKeyId:
name: openproject-secret name: openproject-secret
@ -26,19 +26,30 @@ spec:
wal: wal:
compression: gzip compression: gzip
retentionPolicy: "30d" retentionPolicy: "30d"
# externalClusters: externalClusters:
# - name: clusterBackup - name: clusterBackup
# barmanObjectStore: barmanObjectStore:
# destinationPath: "s3://openproject/backups" destinationPath: "s3://openproject/backups"
# endpointURL: "https://fsn1.your-objectstorage.com" endpointURL: "https://fsn1.your-objectstorage.com"
# serverName: openproject serverName: "newnew-openproject"
# s3Credentials: s3Credentials:
# accessKeyId: accessKeyId:
# name: openproject-secret name: openproject-secret
# key: OPENPROJECT_FOG_CREDENTIALS_AWS__ACCESS__KEY__ID key: OPENPROJECT_FOG_CREDENTIALS_AWS__ACCESS__KEY__ID
# secretAccessKey: secretAccessKey:
# name: openproject-secret name: openproject-secret
# key: OPENPROJECT_FOG_CREDENTIALS_AWS__SECRET__ACCESS__KEY key: OPENPROJECT_FOG_CREDENTIALS_AWS__SECRET__ACCESS__KEY
# wal: wal:
# maxParallel: 8 maxParallel: 8
# compression: gzip compression: gzip
---
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: backup-openproject
spec:
immediate: true
schedule: "0 0 0 * * *"
backupOwnerReference: self
cluster:
name: openproject