Interface BackupBuilder

All Known Implementing Classes:
CloseableBackupBuilder

public interface BackupBuilder
Allows adding files to a backup during its creation
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addToBackup(Collection<File> files, File rootDir)
    Add files to a backup being created.
  • Method Details

    • addToBackup

      void addToBackup(Collection<File> files, File rootDir)
      Add files to a backup being created. Relative position of each file to rootDir determines its relative subpath within the backup
      Parameters:
      files - list of existing files to be included to the backup
      rootDir - determines relative subpaths of files in the archive , must be parent to the files(will throw an exeption otherwise)