## 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 %} |