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