From edda6485bbf84324edd8e45b0ff98f472768d260 Mon Sep 17 00:00:00 2001 From: lsy Date: Sat, 26 Oct 2024 13:21:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E4=BB=BD=E4=B9=8B=E5=89=8D=E5=85=88?= =?UTF-8?q?=E5=81=9C=E6=AD=A2=E5=AE=B9=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Automation/Installs/backup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Config/Automation/Installs/backup.sh b/Config/Automation/Installs/backup.sh index 455c401..b4e5f03 100644 --- a/Config/Automation/Installs/backup.sh +++ b/Config/Automation/Installs/backup.sh @@ -90,7 +90,9 @@ for item in "$web_path"/*; do continue fi cd "\$item" || exit + docker compose down tar -czf "\${item_name}_\${date_time}.tar.gz" \$(ls) + docker compose up -d bypy upload "\${item_name}_\${date_time}.tar.gz" "/\${item_name}/" ${path}/aliyunpan/aliyunpan upload "\${item_name}_\${date_time}.tar.gz" "/网站/\${item_name}/\${year}/" mkdir -p "${loacl_path}/\${year}/\${item_name}" && cp "\${item_name}_\${date_time}.tar.gz" "${loacl_path}/\${year}/\${item_name}"