|
|
@@ -733,18 +733,18 @@ public class FileServiceImpl implements FileService {
|
|
|
Executable command = new Executable() {
|
|
|
@Override
|
|
|
public String execute() {
|
|
|
- try {
|
|
|
- File reportZipFile = new File(ReportUtils.getBackupDir(), "data.zip");
|
|
|
- if(reportZipFile.getParentFile() != null && !reportZipFile.getParentFile().exists()){
|
|
|
- reportZipFile.getParentFile().mkdirs();
|
|
|
- }
|
|
|
+ //try {
|
|
|
+ // File reportZipFile = new File(ReportUtils.getBackupDir(), "data.zip");
|
|
|
+ // if(reportZipFile.getParentFile() != null && !reportZipFile.getParentFile().exists()){
|
|
|
+ // reportZipFile.getParentFile().mkdirs();
|
|
|
+ // }
|
|
|
// 先将整个目录压缩,再备份该压缩文件
|
|
|
// dynamicProperties.getLocalBaseDir()路径取错,先暂时关闭定时备份
|
|
|
// ZipUtils.zipFolder(dynamicProperties.getLocalBaseDir(), reportZipFile.getPath(), fileFilter);
|
|
|
// FileUtils.backup(reportZipFile, 10);
|
|
|
- } catch (IOException e) {
|
|
|
- logger.error("备份失败", e);
|
|
|
- }
|
|
|
+ //} catch (IOException e) {
|
|
|
+ // logger.error("备份失败", e);
|
|
|
+ //}
|
|
|
return "success";
|
|
|
}
|
|
|
};
|