Fix retention days

This commit is contained in:
Morre 2021-01-01 14:25:39 +01:00
parent 76bf67be66
commit 732b31e306
No known key found for this signature in database
GPG key ID: F36FB77CA7C2E7B2

View file

@ -17,5 +17,5 @@
- name: add backup cleanup cronjob - name: add backup cleanup cronjob
cron: cron:
name: db backup cleanup name: db backup cleanup
job: 'find /opt/mysqlbackup/* -mtime +{{ mariadb.backup.keep_days }} -type f -exec rm {} \;' job: 'find /opt/mysqlbackup/* -mtime +{{ mariadb.backup.keep_days - 1 }} -type f -exec rm {} \;'
special_time: daily special_time: daily