|Modifier and Type||Method and Description|
Add files to backup being built.
Closes this stream and releases any system resources associated with it.
Creates a new builder.
public static CloseableBackupBuilder open(@Nonnull File snapshot, @Nonnull ArchiveUtils.Type archiveType, @Nullable java.util.function.Consumer<File> filesObserver)
archiveType- path of archive to create, the file should not exist
snapshot- path of archive to create
filesObserver- optional consumer that will have access to all processed files before they're added to archive
public void addToBackup(Collection<File> files, File rootDirectory)
public void close()
Copyright © 2002-2021 Atlassian. All Rights Reserved.