]> arthur.barton.de Git - backup-script.git/commitdiff
backup-status: enhance status messages
authorAlexander Barton <alex@barton.de>
Mon, 30 Sep 2013 11:55:45 +0000 (13:55 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 30 Sep 2013 11:55:45 +0000 (13:55 +0200)
bin/backup-status

index 26efc142a53bd03e2cd138f821a01031e7222c00..e446b6682753467f179218f5bf53ad95783870c8 100755 (executable)
@@ -45,8 +45,8 @@ Check_Stamp() {
                source "$1"
                case "$code" in
                  0)    txt=", OK"; ;;
-                 24)   txt=", files changed during backup"; ;;
-                 *)    txt=""
+                 24)   txt=", WARNING (some files vanished during backup)"; ;;
+                 *)    txt=", ERROR"
                esac
                [ -n "$code" ] && echo "$2  - Result code: $code$txt"
        else