mysqldump -u $dbUsername --password=$dbPassword --databases $db | gzip > ${dbBackup}/${db}-${date}.sql.gz
if [ echo $? -ne 0 ]; then
mail -s "Backup mysql cron job $0 failed" $MAIL_TO <<EOF
EOF
执行脚本后出错 - 意外的行尾
mysqldump -u $dbUsername --password=$dbPassword --databases $db | gzip > ${dbBackup}/${db}-${date}.sql.gz
if [ echo $? -ne 0 ]; then
mail -s "Backup mysql cron job $0 failed" $MAIL_TO <<EOF
EOF
执行脚本后出错 - 意外的行尾