Interface BackupBuilder
- All Known Implementing Classes:
CloseableBackupBuilder
public interface BackupBuilder
Allows adding files to a backup during its creation
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToBackup
(Collection<File> files, File rootDir) Addfiles
to a backup being created.
-
Method Details
-
addToBackup
Addfiles
to a backup being created. Relative position of each file torootDir
determines 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)
-