homelab/roles/rsnapshot/templates/rsnapshot-report.sh.j2

5 lines
167 B
Plaintext
Raw Permalink Normal View History

2021-06-08 04:33:55 +00:00
#/bin/bash
LOG_LOCATION={{ rsnapshot_logdir }}/*.log
[ $# -gt 0 ] && LOG_LOCATION=$1
grep -e ^\\[$(date --date="yesterday" '+%F').*\/usr\/bin\/rsnapshot $LOG_LOCATION