homeserver/friedhof/mgrote_rsync/templates/rsync_mirror_log.sh.j2
Michael Grote 563223e182
All checks were successful
ansible-lint / gitleaks (push) Successful in 57s
ansible-lint / Ansible Lint (push) Successful in 1m19s
replace rsync with freefilesync (#286)
the replacement gets replaced :-D

- old: 7a2ccbabb6

see also:

- ddaa6835b5
- 56e85dfa93

Reviewed-on: #286
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2025-01-18 19:08:01 +01:00

5 lines
383 B
Django/Jinja

#!/bin/bash
{{ 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 - $HOSTNAME" {{ my_mail }}
{# Anzahl der Elemente mal 5, da jeweils 5 Zeilen ausgegeben werden #}