rsync_mirror: add better logging #230

Merged
mg merged 9 commits from rsync_mirror_logging into master 2024-11-11 13:35:13 +01:00
Showing only changes of commit 3337436376 - Show all commits

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
{{ file_header | default () }} {{ file_header | default () }}
/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 }} /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 }}
{# Anzahl der Elemente mal 5, da jeweils 5 Zeilen ausgegeben werden #} {# Anzahl der Elemente mal 5, da jeweils 5 Zeilen ausgegeben werden #}