perf:删除过期备份
This commit is contained in:
@@ -53,8 +53,8 @@ public class DbBackupConfig {
|
|||||||
RuntimeUtil.execForStr(StrUtil.format("gzip -9f {}", saveFile));
|
RuntimeUtil.execForStr(StrUtil.format("gzip -9f {}", saveFile));
|
||||||
|
|
||||||
// 删除过期备份
|
// 删除过期备份
|
||||||
String forStr = RuntimeUtil.execForStr("find " + backupDir + " -name \"*.gz\" -mtime -" + days);
|
// String forStr = RuntimeUtil.execForStr("find " + backupDir + " -name \"*.gz\" -mtime -" + days);
|
||||||
LogFactory.get().info(forStr);
|
// LogFactory.get().info(forStr);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LogFactory.get().info(e);
|
LogFactory.get().info(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user