2、ssysql LOCAL_PASSOTE_HOSTfirst! result=`mysqladmin-h$REMOTE_HOST--passotehostsaid:$result; exit fi ;; local) #backuptolocalhostdir. if[!-d$DB_BACKUP_PATH];then mkdir$DB_BACKUP_PATH fi echo-n[$db]....Backuptolocal$DB_BACKUP_PATHv$DB_BACKUP_PATH/$db.gz$DB_BACKUP_PATH/$db.1
3、.gz; fi mysqldump--passonBackup! echo-n[$db]...DoBackup!====>>$REMOTE_HOST/$db; mysqldump--add-drop-table$db--passysql-h$REMOTE_HOST--passOTE_PASSWORD$db echo....[OK]; esac else>>>这篇文章来自..,。> echo[$db]; echo***ThisdatabasesettoNotbackup!...OperationCANCELED!; fi el