fix cnpg backups
This commit is contained in:
parent
ba9eea8e28
commit
c33b788c50
1 changed files with 33 additions and 22 deletions
|
@ -6,16 +6,16 @@ spec:
|
|||
instances: 3
|
||||
storage:
|
||||
size: 1Gi
|
||||
# bootstrap:
|
||||
# recovery:
|
||||
# source: clusterBackup
|
||||
# recoveryTarget:
|
||||
# targetTime: "2025-02-12 21:00:00.00000+00"
|
||||
bootstrap:
|
||||
recovery:
|
||||
source: clusterBackup
|
||||
#recoveryTarget:
|
||||
# targetTime: "2025-02-12 21:00:00.00000+00"
|
||||
backup:
|
||||
barmanObjectStore:
|
||||
destinationPath: "s3://openproject/backups"
|
||||
endpointURL: "https://fsn1.your-objectstorage.com"
|
||||
serverName: "new-openproject"
|
||||
serverName: "newnew-openproject" # in case of restore change this
|
||||
s3Credentials:
|
||||
accessKeyId:
|
||||
name: openproject-secret
|
||||
|
@ -26,19 +26,30 @@ spec:
|
|||
wal:
|
||||
compression: gzip
|
||||
retentionPolicy: "30d"
|
||||
# externalClusters:
|
||||
# - name: clusterBackup
|
||||
# barmanObjectStore:
|
||||
# destinationPath: "s3://openproject/backups"
|
||||
# endpointURL: "https://fsn1.your-objectstorage.com"
|
||||
# serverName: openproject
|
||||
# s3Credentials:
|
||||
# accessKeyId:
|
||||
# name: openproject-secret
|
||||
# key: OPENPROJECT_FOG_CREDENTIALS_AWS__ACCESS__KEY__ID
|
||||
# secretAccessKey:
|
||||
# name: openproject-secret
|
||||
# key: OPENPROJECT_FOG_CREDENTIALS_AWS__SECRET__ACCESS__KEY
|
||||
# wal:
|
||||
# maxParallel: 8
|
||||
# compression: gzip
|
||||
externalClusters:
|
||||
- name: clusterBackup
|
||||
barmanObjectStore:
|
||||
destinationPath: "s3://openproject/backups"
|
||||
endpointURL: "https://fsn1.your-objectstorage.com"
|
||||
serverName: "newnew-openproject"
|
||||
s3Credentials:
|
||||
accessKeyId:
|
||||
name: openproject-secret
|
||||
key: OPENPROJECT_FOG_CREDENTIALS_AWS__ACCESS__KEY__ID
|
||||
secretAccessKey:
|
||||
name: openproject-secret
|
||||
key: OPENPROJECT_FOG_CREDENTIALS_AWS__SECRET__ACCESS__KEY
|
||||
wal:
|
||||
maxParallel: 8
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue