Package: backupninja Version: 0.9.4-6 Severity: normal Here is the end of the script:
541 previous="" 542 for i in $(ls "$configdirectory"); do 543 backuploc=$(grep ^directory "$configdirectory"/"$i" | awk '{print $3}') 544 if [ "$backuploc" != "$previous" ]; then 545 mountdev=$(mount | grep "$backuploc" | awk '{print $1}') 546 df -h "$mountdev" 547 previous="$backuploc" 548 fi 549 done If directory is not a mount point, mount | grep "$backuploc" does not work, and return an empty string. df -h on it produce an error message sent by cron. This code will probably also report errors if: - A MySQL backup is after a directory backup (mysql does not have ^directory and backuploc will be an empty string). - backuplog contain one or more mountpoints (mount | grep will produce more than one line) -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.24.5-grsec-xxxx-grs-ipv4-64 Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) Versions of packages backupninja depends on: ii bash 3.1dfsg-8 The GNU Bourne Again SHell ii dialog 1.0-20060221-3 Displays user-friendly dialog boxe ii mawk 1.3.3-11 a pattern scanning and text proces backupninja recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]