if (filename.startsWith("syslog") || filename.equals("dmesg")) {
entryPath = "syslog" + File.separator + file.getName();
}
if (file.isFile() && file.canRead() && file.length() > 0) {
tarGenerator.queueEntry(folderPath + entryPath, file);
}
}
String[] sarCmd = {"bash", "-c", "sar -A"};
cmd(tarGenerator, sarCmd, folderPath , "sardata");