blob: 093b084238d5761b47d6313cd2664dfa0ab2da11 [file] [log] [blame]
## Default: Monthly rotation with 6 rotations left
{%- from "backupninja/map.jinja" import client with context %}
{%- if client.get('enabled', False) %}
job:
backupninja:
- files:
- /var/log/backupninja.log
options:
- {{ client.get('logrotate', {}).get('interval', 'monthly') }}
- rotate: {{ client.get('logrotate', {}).get('rotate', 6) }}
- compress
- missingok
{%- endif %}