mysql备份shell脚本

#!/bin/bashmysql # 要备份的数据库名,多个数据库用空格分开 databases=(test)sql # 备份文件要保存的目录 basepath='/usr/local/mysqlbak/'数据库 if [ ! -d "$basepath" ]; then   mkdir -p "$basepath" fi数组 # 循环databases数组 for db in ${databas
相关文章
相关标签/搜索