private void writeIncrementalData(BufferedWriter writer) throws IOException {
    // Write out baseline file copies in restore script (if there are any) if this is a restore
    // for an incremental backup
    if (baselineFiles.isEmpty()) {
      return;
    }

    writer.newLine();
    generator.writeComment(writer, INCREMENTAL_MARKER_COMMENT);
    for (Map.Entry<File, File> entry : baselineFiles.entrySet()) {
      generator.writeCopyFile(writer, entry.getKey(), entry.getValue());
    }
  }
This class is used to automatically generate a restore script for a backup. It keeps a list of
files that were backed up, and a list of files that we should test for to avoid overriding when
we restore the backup.

<p>
It generates either a restore.sh for unix or a restore.bat for windows.
geode-core/src/main/java/org/apache/geode/internal/cache/backup/RestoreScript.java