mysql備份shell腳本

#!/bin/bashmysql # 要備份的數據庫名,多個數據庫用空格分開 databases=(test)sql # 備份文件要保存的目錄 basepath='/usr/local/mysqlbak/'數據庫 if [ ! -d "$basepath" ]; then   mkdir -p "$basepath" fi數組 # 循環databases數組 for db in ${databas
相關文章
相關標籤/搜索