Changeset 9136 for trunk/MagicSoft/Mars/datacenter/scripts/budb
- Timestamp:
- 09/16/08 11:20:26 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/budb
r9063 r9136 32 32 olday=`date +%F --date="-30day"` 33 33 34 source `dirname $0`/sourcefile 35 printprocesslog "INFO starting $0" 36 34 37 set -C 35 38 … … 59 62 60 63 echo "writing all databases to $zipfile..." >> $logfile 2>&1 61 set +C 64 62 65 # complete databases 63 mysqldump --host=vela --all-databases -u dump | bzip2 -9 -c > $zipfile 2>> $logfile 66 if ! mysqldump --host=vela --all-databases -u dump | bzip2 -9 -c >| $zipfile 2>> $logfile 67 then 68 printprocesslog "ERROR mysqldump failed " 69 echo "ERROR mysqldump failed " >> $logfile 2>&1 70 fi 64 71 echo "writing create commands to $command..." >> $logfile 2>&1 65 72 # commands to create MyMagic 66 mysqldump --host=vela --database $dbname -u dump --no-data > $command 2>> $logfile 73 if ! mysqldump --host=vela --database $dbname -u dump --no-data >| $command 2>> $logfile 74 then 75 printprocesslog "ERROR mysqldump failed " 76 echo "ERROR mysqldump failed " >> $logfile 2>&1 77 fi 67 78 79 finish >> $logfile 2>&1 68 80
Note:
See TracChangeset
for help on using the changeset viewer.