private void performRestore(File memberDir,File backupDir) throws Exception {
  List<File> ifFiles=FileUtil.findAll(memberDir,".*\\.if$");
  for (  File file : ifFiles) {
    file.delete();
  }
  List<File> oplogs=FileUtil.findAll(memberDir,OPLOG_REGEX);
  for (  File file : oplogs) {
    file.delete();
  }
  File restoreScript=new File(backupDir,"restore.sh");
  if (!restoreScript.exists()) {
    restoreScript=new File(backupDir,"restore.bat");
  }
  assertTrue(restoreScript.exists());
  assertEquals(0,execute(restoreScript.getAbsolutePath()));
}

private void performRestore ( File memberDir , File backupDir ) throws Exception { List < File > ifFiles = FileUtil . findAll ( memberDir , ".*\\.if$" ) ; for ( File file : ifFiles ) { file . delete ( ) ; } List < File > oplogs = FileUtil . findAll ( memberDir , OPLOG_REGEX ) ; for ( File file : oplogs ) { file . delete ( ) ; } File restoreScript = new File ( backupDir , "restore.sh" ) ; if ( ! restoreScript . exists ( ) ) { restoreScript = new File ( backupDir , "restore.bat" ) ; } assertTrue ( restoreScript . exists ( ) ) ; assertEquals ( 0 , execute ( restoreScript . getAbsolutePath ( ) ) ) ; }
peforms an operation log restore for a member .
