fix(nextcloud|forgejo): db backup

This commit is contained in:
nold 2024-01-16 14:21:09 +01:00
parent cf3b807482
commit f9f31b97a7
2 changed files with 29 additions and 28 deletions

View file

@ -3,19 +3,20 @@ kind: Cluster
metadata:
name: gitea-db
namespace: gitea
annotations:
cnpg.io/skipEmptyWalArchiveCheck: enabled
spec:
instances: 1
imageName: ghcr.io/cloudnative-pg/postgresql:15
bootstrap:
initdb:
database: app
owner: app
recovery:
source: gitea-db
backup:
barmanObjectStore:
destinationPath: "s3://gitea-db/"
endpointURL: "http://minio.minio.svc.cluster.local:9000"
destinationPath: "s3://forgejo/"
endpointURL: "http://s3-minio.s3.svc.cluster.local:9000"
s3Credentials:
accessKeyId:
name: bucket
@ -45,8 +46,8 @@ spec:
externalClusters:
- name: gitea-db
barmanObjectStore:
destinationPath: "s3://gitea-db/"
endpointURL: "http://minio.minio.svc.cluster.local:9000"
destinationPath: "s3://forgejo/"
endpointURL: "http://s3-minio.s3.svc.cluster.local:9000"
s3Credentials:
accessKeyId:
name: bucket

View file

@ -10,25 +10,25 @@ spec:
bootstrap:
recovery:
source: nextcloud-db
#
# backup:
# barmanObjectStore:
# destinationPath: "s3://nextcloud-db/"
# endpointURL: "http://minio.minio.svc.cluster.local:9000"
# s3Credentials:
# accessKeyId:
# name: bucket
# key: accesskey
# secretAccessKey:
# name: bucket
# key: secretkey
# wal:
# compression: gzip
# #encryption: AES256
# data:
# compression: gzip
# #encryption: AES256
# retentionPolicy: "90d"
backup:
barmanObjectStore:
destinationPath: "s3://nextcloud-backup/"
endpointURL: "http://s3-minio.s3.svc.cluster.local:9000"
s3Credentials:
accessKeyId:
name: bucket
key: accesskey
secretAccessKey:
name: bucket
key: secretkey
wal:
compression: gzip
#encryption: AES256
data:
compression: gzip
#encryption: AES256
retentionPolicy: "90d"
resources:
requests:
@ -44,8 +44,8 @@ spec:
externalClusters:
- name: nextcloud-db
barmanObjectStore:
destinationPath: "s3://nextcloud-db/"
endpointURL: "http://minio.minio.svc.cluster.local:9000"
destinationPath: "s3://nextcloud-backup/"
endpointURL: "http://s3-minio.s3.svc.cluster.local:9000"
s3Credentials:
accessKeyId:
name: bucket