diff --git a/helm/longhorn/dev/templates/backup-daily.yaml b/helm/longhorn/dev/templates/backup-daily.yaml index 996dacb..7fa7605 100644 --- a/helm/longhorn/dev/templates/backup-daily.yaml +++ b/helm/longhorn/dev/templates/backup-daily.yaml @@ -7,6 +7,6 @@ spec: cron: "0 0 * * *" task: "backup" groups: - - "default" # Optionnel : permet de regrouper les jobs + - "backup" # Optionnel : permet de regrouper les jobs retain: 7 concurrency: 2 \ No newline at end of file diff --git a/helm/longhorn/dev/templates/snapshot-4h.yaml b/helm/longhorn/dev/templates/snapshot-4h.yaml new file mode 100644 index 0000000..f3a51b6 --- /dev/null +++ b/helm/longhorn/dev/templates/snapshot-4h.yaml @@ -0,0 +1,13 @@ +apiVersion: longhorn.io/v1beta2 +kind: RecurringJob +metadata: + name: snapshot-4h + namespace: {{ .Release.Namespace }} +spec: + cron: "0 */4 * * *" # Toutes les 4 heures + task: "snapshot" + groups: + - "snapshot" # Optionnel : permet de regrouper les jobs + retain: 24 # Conserver 24 snapshots (6 jours avec 4 snapshots/jour) + concurrency: 2 +