if ( !exhibitor.getControlPanelValues().isSet(ControlPanelTypes.BACKUPS) )
{
return;
}
ZooKeeperLogFiles zooKeeperLogFiles = new ZooKeeperLogFiles(exhibitor);
if ( !zooKeeperLogFiles.isValid() )
{
return;
}
Map<String, String> config = getBackupConfig();
BackupProvider provider = backupProvider.get();
if ( !provider.isValidConfig(exhibitor, config) )
{
return;
}
for ( File f : zooKeeperLogFiles.getPaths() )
{
TempCompressedFile tempCompressedFile = new TempCompressedFile(f);
try
{
tempCompressedFile.compress();