private void createRestoreScript(final File backupDirToRestoreFrom, final File incrementalBaseDir)
      throws IOException {
    RestoreScript restoreScript = new RestoreScript();
    restoreScript.addExistenceTest(new File(diskDir, IF_FILE_NAME));
    restoreScript.addFile(diskDir, backupDirToRestoreFrom);
    if (incrementalBaseDir != null) {
      Map<File, File> baselineFilesMap = new HashMap<>();
      baselineFilesMap.put(new File(incrementalBaseDir, CRF_FILE_NAME),
          new File(diskDir, CRF_FILE_NAME));
      baselineFilesMap.put(new File(incrementalBaseDir, DRF_FILE_NAME),
          new File(diskDir, DRF_FILE_NAME));
      restoreScript.addBaselineFiles(baselineFilesMap);
    }
    restoreScript.generate(backupDirToRestoreFrom);
  }
Create a restore script. Place it in backupDirToRestoreFrom.

@param backupDirToRestoreFrom The directory containing the backup files to restore from. This
       could be a full backup or an incremental backup.
@param incrementalBaseDir If backupdirToRestoreFrom is an incremental backup, this directory
       contains the full backup to apply the incremental to.
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/backup/BackupInspectorIntegrationTest.java