Suppress success logs for hourly /home backup

This commit is contained in:
thomasabishop 2025-04-20 15:04:35 +01:00
parent e431ea117d
commit 310084351b

View file

@ -20,8 +20,10 @@ if mountpoint -q /media/samsung-T3; then
if [ $STATUS -ne 0 ]; then
$RCHAT_NOTIFIER "backups" "error" "${SCHEDULE} /home backup failed: ${ERROR}"
else
if [ $SCHEDULE != "hourly" ]; then
$RCHAT_NOTIFIER "backups" "success" "${SCHEDULE} /home backup completed"
fi
fi
else
$RCHAT_NOTIFIER "backups" "error" \
"${SCHEDULE} /home backup failed: disk not mounted"