Class Backup.Builder
java.lang.Object
org.apache.jackrabbit.oak.segment.tool.Backup.Builder
- Enclosing class:
- Backup
Collect options for the
Backup
command.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create an executable version of theBackup
command.withFakeBlobStore
(boolean fakeBlobStore) Simulate the existence of a file-based blob store.withSource
(File source) The source folder of the backup.withTarget
(File target) The target folder of the backup.
-
Method Details
-
withSource
The source folder of the backup. This parameter is required. The path should point to a valid segment store.- Parameters:
source
- the path of the source folder of the backup.- Returns:
- this builder.
-
withTarget
The target folder of the backup. This parameter is required. The path should point to an existing segment store or to an empty folder. If the folder doesn't exist, it will be created.- Parameters:
target
- the path of the target folder of the backup.- Returns:
- this builder.
-
withFakeBlobStore
Simulate the existence of a file-based blob store. This parameter is not required and defaults tofalse
.- Parameters:
fakeBlobStore
-true
if a file-based blob store should be simulated,false
otherwise.- Returns:
- this builder.
-
build
Create an executable version of theBackup
command.- Returns:
- an instance of
Runnable
.
-