X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fbackupninja.in;h=1dac55d918e344355931611791d792375c377344;hb=5297a4855d01d0b96a4842e2671269d2c604c427;hp=ef959f2c6c7dc2eede15c5a27584aa2fd4add1ad;hpb=c0126ff1ef90513ce5df48fc41326704a2cef555;p=matthijs%2Fupstream%2Fbackupninja.git diff --git a/src/backupninja.in b/src/backupninja.in index ef959f2..1dac55d 100755 --- a/src/backupninja.in +++ b/src/backupninja.in @@ -178,7 +178,7 @@ function tolower() { # simple to integer function function toint() { - echo "$1" | tr -d [:alpha:] + echo "$1" | tr -d '[:alpha:]' } # @@ -379,8 +379,8 @@ while [ $# -ge 1 ]; do singlerun=$2 processnow=1 else - echo "--run option must be fallowed by a backupninja action file" - fatal "--run option must be fallowed by a backupninja action file" + echo "--run option must be followed by a backupninja action file" + fatal "--run option must be followed by a backupninja action file" usage fi shift @@ -448,7 +448,7 @@ getconf usecolors "yes" getconf SLAPCAT /usr/sbin/slapcat getconf LDAPSEARCH /usr/bin/ldapsearch getconf RDIFFBACKUP /usr/bin/rdiff-backup -getconf CSTREAM=/usr/bin/cstream +getconf CSTREAM /usr/bin/cstream getconf MYSQLADMIN /usr/bin/mysqladmin getconf MYSQL /usr/bin/mysql getconf MYSQLHOTCOPY /usr/bin/mysqlhotcopy @@ -546,10 +546,9 @@ if [ $doit == 1 ]; then for i in $(ls "$configdirectory"); do backuploc=$(grep ^directory "$configdirectory"/"$i" | @AWK@ '{print $3}') if [ "$backuploc" != "$previous" ]; then - mountdev=$(mount | grep "$backuploc" | @AWK@ '{print $1}') - df -h "$mountdev" + df -h "$backuploc" previous="$backuploc" - fi + fi done fi } | mail -s "backupninja: $hostname $subject" $reportemail