Ignore:
Timestamp:
09/16/08 11:20:26 (16 years ago)
Author:
snruegam
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/scripts/budb

    r9063 r9136  
    3232olday=`date +%F --date="-30day"`
    3333
     34source `dirname $0`/sourcefile
     35printprocesslog "INFO starting $0"
     36
    3437set -C
    3538
     
    5962
    6063echo "writing all databases to $zipfile..." >> $logfile 2>&1
    61 set +C
     64
    6265# complete databases
    63 mysqldump --host=vela --all-databases -u dump | bzip2 -9 -c > $zipfile 2>> $logfile
     66if ! mysqldump --host=vela --all-databases -u dump | bzip2 -9 -c >| $zipfile 2>> $logfile
     67then
     68   printprocesslog "ERROR mysqldump failed "
     69   echo "ERROR mysqldump failed " >> $logfile 2>&1
     70fi
    6471echo "writing create commands to $command..." >> $logfile 2>&1
    6572# commands to create MyMagic
    66 mysqldump --host=vela --database $dbname -u dump --no-data > $command 2>> $logfile
     73if ! mysqldump --host=vela --database $dbname -u dump --no-data >| $command 2>> $logfile
     74then
     75   printprocesslog "ERROR mysqldump failed "
     76   echo "ERROR mysqldump failed " >> $logfile 2>&1
     77fi
    6778
     79finish >> $logfile 2>&1
    6880
Note: See TracChangeset for help on using the changeset viewer.