修复备份脚本错误

This commit is contained in:
lsy2246 2024-04-06 17:58:14 +08:00
parent 56a6788f77
commit 2275a7a3e7

View File

@ -10,7 +10,7 @@ password=""
for item in ${mysql_arry[@]};do
mkdir -p "$item/$year"
mysql -u $user -p$password ${item} > "${item}_${date_time}.sql"
mysqldump -u $user -p$password ${item} > "${item}_${date_time}.sql"
zip "./$item/$year/${item}_${date_time}.zip" "./${item}_${date_time}.sql"
done