Fix retention days
This commit is contained in:
parent
76bf67be66
commit
732b31e306
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue