From abedc724dfd1a9c4d020a2bb6b82f82c07e45fbb Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 27 Oct 2023 15:05:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=8B=E7=BC=A9=E8=BF=87=E7=A8=8B?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=20.sock=20=E5=A5=97=E6=8E=A5=E5=AD=97=20(#27?= =?UTF-8?q?06)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #2702 --- backend/app/service/cronjob_helper.go | 1 + backend/app/service/snapshot_create.go | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/app/service/cronjob_helper.go b/backend/app/service/cronjob_helper.go index 7e8cbd473..66bc29e1c 100644 --- a/backend/app/service/cronjob_helper.go +++ b/backend/app/service/cronjob_helper.go @@ -221,6 +221,7 @@ func handleTar(sourceDir, targetDir, name, exclusionRules string) error { excludes := strings.Split(exclusionRules, ",") excludeRules := "" + excludes = append(excludes, "*.sock") for _, exclude := range excludes { if len(exclude) == 0 { continue diff --git a/backend/app/service/snapshot_create.go b/backend/app/service/snapshot_create.go index 0be39a23b..57546bc09 100644 --- a/backend/app/service/snapshot_create.go +++ b/backend/app/service/snapshot_create.go @@ -215,6 +215,7 @@ func handleSnapTar(sourceDir, targetDir, name, exclusionRules string) error { exStr := "" excludes := strings.Split(exclusionRules, ";") + excludes = append(excludes, "*.sock") for _, exclude := range excludes { if len(exclude) == 0 { continue