From c9fb12b2d7ce08bcd13ce01a3c409a9c69815919 Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 29 Jul 2024 11:15:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=A4=87=E4=BB=BD=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Automation/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Config/Automation/backup.sh b/Config/Automation/backup.sh index db6e00c..5a56717 100644 --- a/Config/Automation/backup.sh +++ b/Config/Automation/backup.sh @@ -82,7 +82,7 @@ source "${path}/venv/bin/activate" for item in "$web_path"/*; do declare item_name=\$(basename "\$item") cd "\$item" || exit - tar -czf "\${item_name}_\${date_time}.tar.gz" . + tar -czf "\${item_name}_\${date_time}.tar.gz" $(ls) bypy upload "\${item_name}_\${date_time}.tar.gz" "/\${item_name}/" ${path}/aliyunpan/aliyunpan upload "\${item_name}_\${date_time}.tar.gz" "/网站/\${item_name}/\${year}/" cp "\${item_name}_\${date_time}.tar.gz" "${web_path}/\${year}/"