From 2275a7a3e7409ee2383a8b9de81334b722be7671 Mon Sep 17 00:00:00 2001 From: lsy2246 Date: Sat, 6 Apr 2024 17:58:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=87=E4=BB=BD=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/code/backups.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/code/backups.sh b/shell/code/backups.sh index 14ef967..eb974e3 100644 --- a/shell/code/backups.sh +++ b/shell/code/backups.sh @@ -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