Skip to content

Commit

Permalink
feat(cloud): new daily backup schedule.
Browse files Browse the repository at this point in the history
- 2 local (do-block-storage), 12h apart, keep latest 14 (1 week).
- 2 S3 (AWS replicated), 12h apart, keep latest 30/60 (1 month).
  • Loading branch information
bitfade committed May 3, 2022
1 parent 65fd9bf commit ac72a77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 40 deletions.
2 changes: 1 addition & 1 deletion charts/percona-xtradb-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
49 changes: 10 additions & 39 deletions charts/percona-xtradb-cluster/templates/cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ac72a77

Please sign in to comment.