Class Backup.Builder
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.tool.Backup.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Backup
build()
Create an executable version of theBackup
command.Backup.Builder
withFakeBlobStore(boolean fakeBlobStore)
Simulate the existence of a file-based blob store.Backup.Builder
withSource(File source)
The source folder of the backup.Backup.Builder
withTarget(File target)
The target folder of the backup.
-
-
-
Method Detail
-
withSource
public Backup.Builder withSource(File source)
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
public Backup.Builder withTarget(File target)
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
public Backup.Builder withFakeBlobStore(boolean fakeBlobStore)
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.
-
-