commit df671466aaad35046e21a093db69a621a88c063d parent d853ac3a2d36bc1fd40e6d206eaa3b632a2dbf09 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Mon, 18 Dec 2023 08:02:58 +0100 no alert for backup disks Diffstat:
df-alert | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/df-alert b/df-alert @@ -25,6 +25,12 @@ fi # other disks df -t ext4 | awk '{print $6}' | grep '^/mnt' | while read l do - do_check "$l" + NAME=$(echo "$l" | rev | cut -d '/' -f1 | rev) + echo "$NAME" + # do not watch disk space on disks that are only used for backups + if ! grep -q "$NAME" "$HOME/config/private/disks_backup" > /dev/null + then + do_check "$l" + fi done