From 24e780b984adec3216b0c6ae7a993dcf90aa90fb Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 21 Aug 2024 15:12:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=8B=E7=BC=A9=E5=A2=9E=E5=8A=A0=20*?= =?UTF-8?q?.socket=20=E6=8E=92=E9=99=A4=E8=A7=84=E5=88=99=20(#6196)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 aca743370..898fe54c7 100644 --- a/backend/app/service/cronjob_helper.go +++ b/backend/app/service/cronjob_helper.go @@ -140,6 +140,7 @@ func handleTar(sourceDir, targetDir, name, exclusionRules string, secret string) excludes := strings.Split(exclusionRules, ",") excludeRules := "" excludes = append(excludes, "*.sock") + excludes = append(excludes, "*.socket") 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 9649326c0..82d9763a0 100644 --- a/backend/app/service/snapshot_create.go +++ b/backend/app/service/snapshot_create.go @@ -232,6 +232,7 @@ func handleSnapTar(sourceDir, targetDir, name, exclusionRules string, secret str exStr := "" excludes := strings.Split(exclusionRules, ";") excludes = append(excludes, "*.sock") + excludes = append(excludes, "*.socket") for _, exclude := range excludes { if len(exclude) == 0 { continue