diff --git a/backend/app/service/snapshot_create.go b/backend/app/service/snapshot_create.go index bbdac3077..5ea82adb3 100644 --- a/backend/app/service/snapshot_create.go +++ b/backend/app/service/snapshot_create.go @@ -43,7 +43,7 @@ func snapPanel(snap snapHelper, targetDir string) { defer snap.Wg.Done() _ = snapshotRepo.UpdateStatus(snap.Status.ID, map[string]interface{}{"panel": constant.Running}) status := constant.StatusDone - if err := common.CopyFile("/usr/local/bin/1panel", targetDir); err != nil { + if err := common.CopyFile("/usr/local/bin/1panel", path.Join(targetDir, "1panel")); err != nil { status = err.Error() }