Interface BackupBuilder
- All Known Implementing Classes:
CloseableBackupBuilder
public interface BackupBuilder
Allows adding files to a backup during its creation
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddToBackup(Collection<File> files, File rootDir) Addfilesto a backup being created.
-
Method Details
-
addToBackup
Addfilesto a backup being created. Relative position of each file torootDirdetermines its relative subpath within the backup- Parameters:
files- list of existing files to be included to the backuprootDir- determines relative subpaths of files in the archive , must be parent to thefiles(will throw an exeption otherwise)
-