fix: 备份文件时忽略文件变化 (#1934)

This commit is contained in:
ssongliu
2023-08-12 13:54:11 +00:00
committed by GitHub
parent 3e6cd1cab1
commit ad78edda64
+1 -1
View File
@@ -221,7 +221,7 @@ func handleTar(sourceDir, targetDir, name, exclusionRules string) error {
path = sourceDir
}
commands := fmt.Sprintf("tar zcvf %s %s %s", targetDir+"/"+name, excludeRules, path)
commands := fmt.Sprintf("tar --warning=no-file-changed zcvf %s %s %s", targetDir+"/"+name, excludeRules, path)
global.LOG.Debug(commands)
stdout, err := cmd.ExecWithTimeOut(commands, 24*time.Hour)
if err != nil {