This commit is contained in:
2023-09-16 20:19:41 +08:00
parent 446764194d
commit 6b3effc51e

View File

@@ -427,7 +427,7 @@ func ExportCmFromNF(w http.ResponseWriter, r *http.Request) {
}
zipFile := fmt.Sprintf("%s-%s-etc-%s.zip", neTypeLower, strings.ToLower(neInfo.NeId), time.Now().Format(global.DateData))
zipCmd := fmt.Sprintf("cd %s && zip -r %s etc/%s/*", config.GetYamlConfig().OMC.Backup, zipFile, neTypeLower)
zipCmd := fmt.Sprintf("cd %s/etc && zip -r %s %s/*", config.GetYamlConfig().OMC.Backup, zipFile, neTypeLower)
command := fmt.Sprintf("%s&&%s", scpCmd, zipCmd)