boolean isDiskStoreIncluded(DiskStore store) {
    if (includeDiskStoresSet.isEmpty()) {
      return true;
    }
    if (includeDiskStoresSet.contains(store.getName())) {
      return true;
    }
    return false;
  }
This class manages the state an logic to backup a single cache.
geode-core/src/main/java/org/apache/geode/internal/cache/backup/BackupTask.java