From 4fed590635a5ac2c053eabbefd85d55a3c60b5d9 Mon Sep 17 00:00:00 2001 From: Melvin GABALI Date: Thu, 15 Jan 2026 18:16:19 +0100 Subject: [PATCH] update backup --- .../{backup-daily.yaml => backup-daily-00h.yaml} | 2 +- helm/longhorn/dev/templates/backup-daily-06h.yaml | 12 ++++++++++++ helm/longhorn/dev/templates/backup-daily-12h.yaml | 12 ++++++++++++ helm/longhorn/dev/templates/backup-daily-18h.yaml | 12 ++++++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) rename helm/longhorn/dev/templates/{backup-daily.yaml => backup-daily-00h.yaml} (91%) create mode 100644 helm/longhorn/dev/templates/backup-daily-06h.yaml create mode 100644 helm/longhorn/dev/templates/backup-daily-12h.yaml create mode 100644 helm/longhorn/dev/templates/backup-daily-18h.yaml diff --git a/helm/longhorn/dev/templates/backup-daily.yaml b/helm/longhorn/dev/templates/backup-daily-00h.yaml similarity index 91% rename from helm/longhorn/dev/templates/backup-daily.yaml rename to helm/longhorn/dev/templates/backup-daily-00h.yaml index 2765ef1..c139617 100644 --- a/helm/longhorn/dev/templates/backup-daily.yaml +++ b/helm/longhorn/dev/templates/backup-daily-00h.yaml @@ -4,7 +4,7 @@ metadata: name: backup-daily namespace: {{ .Release.Namespace }} spec: - cron: "0 2 * * *" + cron: "00 00 * * *" task: "backup" groups: - "group-backup" # Optionnel : permet de regrouper les jobs diff --git a/helm/longhorn/dev/templates/backup-daily-06h.yaml b/helm/longhorn/dev/templates/backup-daily-06h.yaml new file mode 100644 index 0000000..5e0d001 --- /dev/null +++ b/helm/longhorn/dev/templates/backup-daily-06h.yaml @@ -0,0 +1,12 @@ +apiVersion: longhorn.io/v1beta2 +kind: RecurringJob +metadata: + name: backup-daily + namespace: {{ .Release.Namespace }} +spec: + cron: "00 06 * * *" + task: "backup" + groups: + - "group-backup" # Optionnel : permet de regrouper les jobs + retain: 7 + concurrency: 2 \ No newline at end of file diff --git a/helm/longhorn/dev/templates/backup-daily-12h.yaml b/helm/longhorn/dev/templates/backup-daily-12h.yaml new file mode 100644 index 0000000..6342931 --- /dev/null +++ b/helm/longhorn/dev/templates/backup-daily-12h.yaml @@ -0,0 +1,12 @@ +apiVersion: longhorn.io/v1beta2 +kind: RecurringJob +metadata: + name: backup-daily + namespace: {{ .Release.Namespace }} +spec: + cron: "00 12 * * *" + task: "backup" + groups: + - "group-backup" # Optionnel : permet de regrouper les jobs + retain: 7 + concurrency: 2 \ No newline at end of file diff --git a/helm/longhorn/dev/templates/backup-daily-18h.yaml b/helm/longhorn/dev/templates/backup-daily-18h.yaml new file mode 100644 index 0000000..7fec2a6 --- /dev/null +++ b/helm/longhorn/dev/templates/backup-daily-18h.yaml @@ -0,0 +1,12 @@ +apiVersion: longhorn.io/v1beta2 +kind: RecurringJob +metadata: + name: backup-daily + namespace: {{ .Release.Namespace }} +spec: + cron: "00 18 * * *" + task: "backup" + groups: + - "group-backup" # Optionnel : permet de regrouper les jobs + retain: 7 + concurrency: 2 \ No newline at end of file