Fix retention days

This commit is contained in:
Morre 2021-01-01 14:26:15 +01:00
parent f7b667ef53
commit 3310077336
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/postgresbackup/* -mtime +{{ postgresql.backup.keep_days }} -type f -exec rm {} \;' job: 'find /opt/postgresbackup/* -mtime +{{ postgresql.backup.keep_days - 1 }} -type f -exec rm {} \;'
special_time: daily special_time: daily