s
This commit is contained in:
@@ -134,11 +134,12 @@ func ExtDatabaseBackupData(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
affected, _ := res.RowsAffected()
|
||||
|
||||
log.Tracef("filePath:%s backup dir:%s", filePath, config.GetYamlConfig().Database.Backup)
|
||||
cmd := exec.Command("cp", "-rf", filePath, config.GetYamlConfig().Database.Backup)
|
||||
out, err := cmd.CombinedOutput()
|
||||
log.Tracef("Exec output: %v", string(out))
|
||||
if err != nil {
|
||||
log.Errorf("Faile to exec:", err)
|
||||
log.Error("Faile to exec:", err)
|
||||
services.ResponseInternalServerError500ProcessError(w, err)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user