From d4abe34e38354784a0eedcfaca66c1c24a90d5f4 Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 5 Aug 2024 22:13:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E4=BB=BD=E8=84=9A=E6=9C=AC=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E6=96=87=E4=BB=B6=E9=97=AE=E9=A2=98?= 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 8bcbfe1..eb1336b 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" "\$(ls)" + 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}/"