From bcc6565dc24483680e25509e1766f33a5a25670d Mon Sep 17 00:00:00 2001 From: xiao Date: Tue, 7 Jan 2025 11:19:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E5=A4=87=E4=BB=BD?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bt.sh b/bt.sh index e22058e..dc19ae3 100644 --- a/bt.sh +++ b/bt.sh @@ -10,7 +10,7 @@ O_pl=$(cat /www/server/panel/data/o.pl) backup_database() { if [ -d "${Data_Path}" ] && [ ! -z "$(ls -A ${Data_Path})" ]; then - if [ ! -d /www/server/mysql ] || [ -z "$(ls -A /www/server/mysql)" ]; then + if [ ! -d "${Setup_Path}" ] || [ -z "$(ls -A ${Setup_Path})" ]; then timestamp=$(date +"%Y%m%d%H%M%S") tar czf /www/server/data_backup_$timestamp.tar.gz -C ${Data_Path} . fi