636637638639640641642643644645646
} catch (FileNotFoundException ex) { sc.log("can't create stream on " + bakFile, ex); return false; } new ZipArchiver(dir, os).process(); try { os.close(); } catch (IOException ex) { sc.log("Can't close file " + bakFile, ex);
100101102103104105106
fileName = Utils.removeExtension(fileName); } response.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + ".zip\""); new ZipArchiver(file, response.getOutputStream()).process(); }