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 Backupbuild()Create an executable version of theBackupcommand.Backup.BuilderwithFakeBlobStore(boolean fakeBlobStore)Simulate the existence of a file-based blob store.Backup.BuilderwithSource(File source)The source folder of the backup.Backup.BuilderwithTarget(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-trueif a file-based blob store should be simulated,falseotherwise.- Returns:
- this builder.
-
-