From ac72a77473f7998ee0a48074329d44922e4307ce Mon Sep 17 00:00:00 2001 From: bitfade Date: Tue, 3 May 2022 10:30:18 +0200 Subject: [PATCH] feat(cloud): new daily backup schedule. - 2 local (do-block-storage), 12h apart, keep latest 14 (1 week). - 2 S3 (AWS replicated), 12h apart, keep latest 30/60 (1 month). --- charts/percona-xtradb-cluster/Chart.yaml | 2 +- .../templates/cluster.yml | 49 ++++--------------- 2 files changed, 11 insertions(+), 40 deletions(-) diff --git a/charts/percona-xtradb-cluster/Chart.yaml b/charts/percona-xtradb-cluster/Chart.yaml index 970583c..3abff41 100644 --- a/charts/percona-xtradb-cluster/Chart.yaml +++ b/charts/percona-xtradb-cluster/Chart.yaml @@ -14,7 +14,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 1.10.21 +version: 1.10.22 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/charts/percona-xtradb-cluster/templates/cluster.yml b/charts/percona-xtradb-cluster/templates/cluster.yml index eb7f729..28e68d0 100644 --- a/charts/percona-xtradb-cluster/templates/cluster.yml +++ b/charts/percona-xtradb-cluster/templates/cluster.yml @@ -450,43 +450,14 @@ spec: storageClassName: {{ .Values.storage_class_name }} schedule: - #- name: backup-1 - # schedule: '0 * * * *' - # keep: 6 - # storageName: backup-1 + # At minute 1 past every 12th hour. + - name: local + schedule: '1 */12 * * *' + keep: 14 + storageName: backup-local - # At 00:01 on every day-of-month from 2 through 31. - # - name: daily-backup-2 - # schedule: "1 0 2-31 * *" - # keep: 30 - # storageName: backup-2 - - # At 08:01 on every day-of-month from 2 through 31. - # - name: daily-backup-3 - # schedule: "1 8 2-31 * *" - # keep: 30 - # storageName: backup-3 - - # At 16:01 on every day-of-month from 2 through 31. - # - name: daily-backup-4 - # schedule: "1 16 2-31 * *" - # keep: 30 - # storageName: backup-4 - - # At 00:01 on day-of-month 1. - # - name: monthly-backup-2 - # schedule: "1 0 1 * *" - # keep: 6 - # storageName: backup-2 - - # At 08:01 on day-of-month 1. - # - name: monthly-backup-3 - # schedule: "1 8 1 * *" - # keep: 6 - # storageName: backup-3 - - # At 16:01 on day-of-month 1. - # - name: monthly-backup-4 - # schedule: "1 16 1 * *" - # keep: 6 - # storageName: backup-4 + # At minute 1 past every 12th hour from 6 through 23. + - name: aws + schedule: "1 6/12 * * *" + keep: 60 + storageName: backup-aws-1