Suppress success logs for hourly /home backup
This commit is contained in:
parent
e431ea117d
commit
310084351b
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue