protected final long archiveExportedDBTables() throws Exception {
  final NativeCommand nativeCommand=new NativeCommand();
  final String compressedArchivedDBFileName=getArchivedCompressedDBName();
  final String command="tar -zcvf " + compressedArchivedDBFileName + " -C "+ ffdcRootDirectoryName+ " "+ DB_FFDC_SUB_DIRECTORY_NAME;
  logger.debug("Archiving exported DB tables using command \"" + command + "\"");
  final int rc=nativeCommand.exec(command);
  if (rc != 0) {
    final String failureReason=nativeCommand.getCommandOutput();
    throw new Exception(failureReason);
  }
  long fileSize=0;
  final File f=new File(compressedArchivedDBFileName);
  if (f.exists()) {
    fileSize=f.length();
  }
  final String ffdcDBDirectoryName=ffdcDirectoryName;
  logger.debug("Deleting the temporary FFDC directory directory " + ffdcDBDirectoryName);
  deleteDBFFDCFiles(ffdcDBDirectoryName);
  return fileSize;
}

protected final long archiveExportedDBTables ( ) throws Exception { final NativeCommand nativeCommand = new NativeCommand ( ) ; final String compressedArchivedDBFileName = getArchivedCompressedDBName ( ) ; final String command = "tar -zcvf " + compressedArchivedDBFileName + " -C " + ffdcRootDirectoryName + " " + DB_FFDC_SUB_DIRECTORY_NAME ; logger . debug ( "Archiving exported DB tables using command \"" + command + "\"" ) ; final int rc = nativeCommand . exec ( command ) ; if ( rc != 0 ) { final String failureReason = nativeCommand . getCommandOutput ( ) ; throw new Exception ( failureReason ) ; } long fileSize = 0 ; final File f = new File ( compressedArchivedDBFileName ) ; if ( f . exists ( ) ) { fileSize = f . length ( ) ; } final String ffdcDBDirectoryName = ffdcDirectoryName ; logger . debug ( "Deleting the temporary FFDC directory directory " + ffdcDBDirectoryName ) ; deleteDBFFDCFiles ( ffdcDBDirectoryName ) ; return fileSize ; }
creates a gzipped archive of the exported db tables .
