mirror of
				https://github.com/1Panel-dev/1Panel.git
				synced 2025-11-01 03:37:19 +08:00 
			
		
		
		
	fix: 增加备份超时时间 (#1619)
This commit is contained in:
		
							parent
							
								
									e6b1ef30a5
								
							
						
					
					
						commit
						e7a7d391e4
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -227,7 +227,7 @@ func handleTar(sourceDir, targetDir, name, exclusionRules string) error { | |||
| 
 | ||||
| 	commands := fmt.Sprintf("tar zcvf %s %s %s", targetDir+"/"+name, excludeRules, path) | ||||
| 	global.LOG.Debug(commands) | ||||
| 	stdout, err := cmd.ExecWithTimeOut(commands, 5*time.Minute) | ||||
| 	stdout, err := cmd.ExecWithTimeOut(commands, 24*time.Hour) | ||||
| 	if err != nil { | ||||
| 		global.LOG.Errorf("do handle tar failed, stdout: %s, err: %v", stdout, err) | ||||
| 		return errors.New(stdout) | ||||
|  | @ -244,7 +244,7 @@ func handleUnTar(sourceFile, targetDir string) error { | |||
| 
 | ||||
| 	commands := fmt.Sprintf("tar zxvfC %s %s", sourceFile, targetDir) | ||||
| 	global.LOG.Debug(commands) | ||||
| 	stdout, err := cmd.ExecWithTimeOut(commands, 5*time.Minute) | ||||
| 	stdout, err := cmd.ExecWithTimeOut(commands, 24*time.Hour) | ||||
| 	if err != nil { | ||||
| 		global.LOG.Errorf("do handle untar failed, stdout: %s, err: %v", stdout, err) | ||||
| 		return errors.New(stdout) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue