Browse Source

fix: 解决网站备份路径问题 (#1604)

pull/1606/head
ssongliu 1 year ago committed by GitHub
parent
commit
44ca529027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      backend/app/service/cronjob_helper.go

1
backend/app/service/cronjob_helper.go

@ -427,7 +427,6 @@ func (u *CronjobService) handleWebsite(cronjob model.Cronjob, backup model.Backu
record.FileDir = strings.TrimPrefix(backupDir, localDir+"/")
}
record.FileName = fmt.Sprintf("website_%s_%s.tar.gz", website.PrimaryDomain, startTime.Format("20060102150405"))
paths = append(paths, fmt.Sprintf("%s/%s", record.FileDir, record.FileName))
if err := handleWebsiteBackup(&website, backupDir, record.FileName); err != nil {
return paths, err
}

Loading…
Cancel
Save