修复备份脚本错误
This commit is contained in:
parent
56a6788f77
commit
2275a7a3e7
@ -10,7 +10,7 @@ password=""
|
|||||||
|
|
||||||
for item in ${mysql_arry[@]};do
|
for item in ${mysql_arry[@]};do
|
||||||
mkdir -p "$item/$year"
|
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"
|
zip "./$item/$year/${item}_${date_time}.zip" "./${item}_${date_time}.sql"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user