Currently we backup on a simple crontab entry and we keep the last X backups. We should allow for more complex scenarios, like keep the last 24 hourly backups, the last 7 daily backups, and the last 4 weekly backups.
To do this we should deprecate/migrate backupSchedule, backupURL, backupSecretName, backupScheduleJobsHistoryLimit, backupRemoteDeletePolicy and have a backupPolicy entries and have something like:
Currently we backup on a simple crontab entry and we keep the last X backups. We should allow for more complex scenarios, like keep the last 24 hourly backups, the last 7 daily backups, and the last 4 weekly backups.
To do this we should deprecate/migrate
backupSchedule
,backupURL
,backupSecretName
,backupScheduleJobsHistoryLimit
,backupRemoteDeletePolicy
and have abackupPolicy
entries and have something like:Another way to define a backup schedule would be the tarsnapper format (https://github.com/miracle2k/k8s-snapshots#how-the-deltas-work).