2024-11-11 13:19:18 +01:00
|
|
|
#!/bin/bash
|
|
|
|
{{ file_header | default () }}
|
|
|
|
|
2024-11-11 13:25:39 +01:00
|
|
|
/usr/bin/journalctl -u rsync_mirror.service -xe | grep -E '\-----------------------|Source:|Literal data:|matched data:|sent:' | tail -n {{ rsync_mirror_dirs | length * 5 }} | mail -aFROM:{{ rsync_mirror_user }}@mgrote.net -s "rsync_mirror - %H" {{ my_mail }}
|
2024-11-11 13:19:18 +01:00
|
|
|
{# Anzahl der Elemente mal 5, da jeweils 5 Zeilen ausgegeben werden #}
|