Don't send backup fail as critical alert
Critical alerts don't seem to timeout. Don't send critical alerts.
This commit is contained in:
@@ -93,7 +93,7 @@ if [ $? = 0 ]; then # backup drive mounted
|
||||
ln -s $BACKUP_DIR/$SNAPSHOT_NAME $BACKUP_DIR/$LATEST
|
||||
sudo -E -u $USER notify-send "Backup complete" "Snapshot $SNAPSHOT_NAME completed successfully"
|
||||
else
|
||||
sudo -E -u $USER notify-send "Backup failed" "$BACKUP_DRIVE_MNT not mounted. Snapshot $SNAPSHOT_NAME not synced" -u critical
|
||||
sudo -E -u $USER notify-send "Backup failed" "$BACKUP_DRIVE_MNT not mounted. Snapshot $SNAPSHOT_NAME not synced"
|
||||
fi
|
||||
|
||||
# Update latest in snapshot dir
|
||||
|
||||
Reference in New Issue
Block a user