【正文】
te=`date d 39。 +%y%m%d` OldFile=db$DBName$ if [ f $OldFile ] then rm f $OldFile $LogFile 2amp。esacif [ f $NewFile ]then echo [$NewFile]The Backup File is exists,Can39。12345639。flush tables tar zcf /opt/ phpdba /backup/database/$NewFile var sh /opt/ phpdba /mysql/bin/mysql S /tmp/ p39。 e start slave cd /opt/phpdba/backup/database fi echo [$NewFile]Backup Success! $LogFile dateend=$(date +%s) let time=$dateend$datestart echo The Backup Time Is:[$time] $LogFile filesize=`ls l /opt/ phpdba /backup/ database /$NewFile | awk 39。` if [ $filesize eq 20 ] then