enable backups

This commit is contained in:
2025-03-06 23:05:06 -06:00
parent fe244707bf
commit 1ba0b9714b
11 changed files with 390 additions and 564 deletions

View File

@@ -1,30 +1,30 @@
# apiVersion: volsync.backube/v1alpha1
# kind: ReplicationSource
# metadata:
# name: matrix-synapse-backup-source
# namespace: {{ .Release.Namespace }}
# labels:
# app.kubernetes.io/name: matrix-synapse-backup-source
# app.kubernetes.io/instance: {{ .Release.Name }}
# app.kubernetes.io/version: {{ .Chart.AppVersion }}
# app.kubernetes.io/component: backup
# app.kubernetes.io/part-of: {{ .Release.Name }}
# spec:
# sourcePVC: matrix-synapse
# trigger:
# schedule: 0 0 */3 * *
# restic:
# pruneIntervalDays: 14
# repository: matrix-synapse-backup-secret
# retain:
# hourly: 1
# daily: 1
# weekly: 1
# monthly: 2
# yearly: 4
# copyMethod: Snapshot
# storageClassName: ceph-block
# volumeSnapshotClassName: ceph-blockpool-snapshot
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: matrix-synapse-backup-source
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: matrix-synapse-backup-source
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
app.kubernetes.io/component: backup
app.kubernetes.io/part-of: {{ .Release.Name }}
spec:
sourcePVC: matrix-synapse
trigger:
schedule: 0 4 * * *
restic:
pruneIntervalDays: 7
repository: matrix-synapse-backup-secret
retain:
hourly: 1
daily: 3
weekly: 2
monthly: 2
yearly: 4
copyMethod: Snapshot
storageClassName: ceph-block
volumeSnapshotClassName: ceph-blockpool-snapshot
# ---
# apiVersion: volsync.backube/v1alpha1
@@ -41,16 +41,16 @@
# spec:
# sourcePVC: mautrix-discord-data
# trigger:
# schedule: 0 0 */3 * *
# schedule: 0 4 * * *
# restic:
# pruneIntervalDays: 14
# pruneIntervalDays: 7
# repository: mautrix-discord-data-backup-secret
# retain:
# hourly: 1
# daily: 1
# weekly: 1
# monthly: 2
# yearly: 4
# hourly: 1
# daily: 3
# weekly: 2
# monthly: 2
# yearly: 4
# moverSecurityContext:
# runAsUser: 1337
# runAsGroup: 1337
@@ -73,16 +73,16 @@
# spec:
# sourcePVC: mautrix-whatsapp-data
# trigger:
# schedule: 0 0 */3 * *
# schedule: 0 4 * * *
# restic:
# pruneIntervalDays: 14
# pruneIntervalDays: 7
# repository: mautrix-whatsapp-data-backup-secret
# retain:
# hourly: 1
# daily: 1
# weekly: 1
# monthly: 2
# yearly: 4
# hourly: 1
# daily: 3
# weekly: 2
# monthly: 2
# yearly: 4
# moverSecurityContext:
# runAsUser: 1337
# runAsGroup: 1337