From 17a820202062dc0c252781deca48a448b02ce541 Mon Sep 17 00:00:00 2001 From: alexlebens Date: Mon, 12 Aug 2024 00:48:36 -0500 Subject: [PATCH] add volsync for data --- .../templates/replication-source.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 clusters/cl01tl/applications/roundcube/templates/replication-source.yaml diff --git a/clusters/cl01tl/applications/roundcube/templates/replication-source.yaml b/clusters/cl01tl/applications/roundcube/templates/replication-source.yaml new file mode 100644 index 000000000..64dac6c28 --- /dev/null +++ b/clusters/cl01tl/applications/roundcube/templates/replication-source.yaml @@ -0,0 +1,27 @@ +apiVersion: volsync.backube/v1alpha1 +kind: ReplicationSource +metadata: + name: roundcube-data-backup-source + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: roundcube-data-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: roundcube-data + trigger: + schedule: 0 */6 * * * + restic: + pruneIntervalDays: 7 + repository: roundcube-data-backup-secret + retain: + hourly: 1 + daily: 1 + weekly: 3 + monthly: 2 + yearly: 4 + copyMethod: Snapshot + storageClassName: ceph-block-delete + volumeSnapshotClassName: ceph-blockpool-snapshot