Add email reporting for autobackups (0.9.90)

This commit is contained in:
2024-01-11 00:32:38 -05:00
parent 65dce44f72
commit db8c437a31
4 changed files with 24 additions and 2 deletions

View File

@ -74,6 +74,11 @@ pvc_autobackup:
forced_full_time: "Mon *-*-* 0:0:00"
full_interval: 7
full_retention: 2
reporting:
enabled: no
report_on:
forced_full: no
normal: no
auto_mount:
enabled: no
packages:

View File

@ -5,4 +5,4 @@ Description=[Cron] PVC VM autobackup (forced-full)
Type=oneshot
IgnoreSIGPIPE=false
KillMode=process
ExecStart=/usr/bin/pvc --quiet vm autobackup --cron --force-full
ExecStart=/usr/bin/pvc --quiet vm autobackup --cron --force-full {% if pvc_autobackup.reporting.enabled and pvc_autobackup.reporting.report_on.forced_full %}--email-report {{ pvc_autobackup.reporting.emails|join(',') }}{% endif %}

View File

@ -5,4 +5,4 @@ Description=[Cron] PVC VM autobackup (normal)
Type=oneshot
IgnoreSIGPIPE=false
KillMode=process
ExecStart=/usr/bin/pvc --quiet vm autobackup --cron
ExecStart=/usr/bin/pvc --quiet vm autobackup --cron {% if pvc_autobackup.reporting.enabled and pvc_autobackup.reporting.report_on.normal %}--email-report {{ pvc_autobackup.reporting.emails|join(',') }}{% endif %}