/
parameters-cron-template.yaml
35 lines (29 loc) · 1.1 KB
/
parameters-cron-template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
backup_type: 'cron'
# Some stuff you *must* provide...
backup_namespace: SetMe
backup_namespace_sa: SetMe
backup_database_user_password: SetMe
# Always define an hourly schedule.
# It's called 'hourly' - but the actual rate is defined by the schedule.
# Here we run one backup every 4 hours from 02:14...
backup_cron_hourly_schedule: '14 2,6,10,14,18,22 * * *'
backup_cron_hourly_count: 6
# Daily, weekly and monthly schedules.
# - keep daily backups (at 03:04) for a week (6)
# - keep weekly backups (at 04:04) for a month (3)
# - keep monthly backups (at (05:04) for 2 years (23)
backup_cron_daily_schedule: '4 3 * * *'
backup_cron_daily_count: 6
backup_cron_weekly_schedule: '4 4 * * *'
backup_cron_weekly_count: 3
backup_cron_monthly_schedule: '4 5 * * *'
backup_cron_monthly_count: 23
# Some stuff you might not need to provide, but can...
backup_database_host: database
backup_database_user: postgres
backup_volume_pvc: database-backup
# Set a size and storage class if you also want a PVC to be created.
# Leave it as zero if you already have a volume.
backup_volume_size_g: 0
backup_volume_storageclass: ' '