Browse Source

fix: 压缩增加 *.socket 排除规则 (#6196)

pull/6210/head
ssongliu 3 months ago committed by GitHub
parent
commit
24e780b984
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      backend/app/service/cronjob_helper.go
  2. 1
      backend/app/service/snapshot_create.go

1
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

1
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

Loading…
Cancel
Save