backup config pvc

This commit is contained in:
2024-07-04 22:25:12 -05:00
parent fcc074eced
commit a8a1833ec2
2 changed files with 172 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: tdarr-config-backup-source
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: tdarr-config-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: tdarr-config
trigger:
schedule: 0 */6 * * *
restic:
pruneIntervalDays: 14
repository: tdarr-config-backup-secret
retain:
hourly: 1
daily: 1
weekly: 7
monthly: 4
yearly: 4
copyMethod: Snapshot
storageClassName: ceph-block
volumeSnapshotClassName: ceph-blockpool-snapshot
---
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: tdarr-server-backup-source
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: tdarr-server-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: tdarr-server
trigger:
schedule: 0 */6 * * *
restic:
pruneIntervalDays: 14
repository: tdarr-server-backup-secret
retain:
hourly: 1
daily: 1
weekly: 7
monthly: 4
yearly: 4
copyMethod: Snapshot
storageClassName: ceph-block
volumeSnapshotClassName: ceph-blockpool-snapshot