From 93075065858ab7952134f8c52d3b1996d18cee6a Mon Sep 17 00:00:00 2001 From: xiao Date: Tue, 7 Jan 2025 16:08:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=A4=87=E4=BB=BD?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=97=B6=E9=97=B4=E6=88=B3=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E4=B8=BA=E7=A7=92=E7=BA=A7=E6=97=B6=E9=97=B4=E6=88=B3?= 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 363a612..cfb4e77 100644 --- a/bt.sh +++ b/bt.sh @@ -11,7 +11,7 @@ O_pl=$(cat /www/server/panel/data/o.pl) backup_database() { if [ -d "${Data_Path}" ] && [ ! -z "$(ls -A ${Data_Path})" ]; then if [ ! -d "${Setup_Path}" ] || [ -z "$(ls -A ${Setup_Path})" ]; then - timestamp=$(date +"%Y%m%d%H%M%S") + timestamp=$(date +"%s") tar czf /www/server/data_backup_$timestamp.tar.gz -C ${Data_Path} . fi fi