set -o nounset #引用未初始化變數時退出 #set -o errexit #執行 shell 命令遇到錯誤時退出 user=”root” password=”123456″ host=”localhost” port=”3306″ #需備份的資料庫,陣列 db=(“test”) #備份時加鎖方式, #MyISAM 為鎖表–lock-all-tables, #InnoDB 為鎖行–single-transaction lock=”...