Class Backup.Builder

  • Enclosing class:
    Backup

    public static class Backup.Builder
    extends java.lang.Object
    Collect options for the Backup command.
    • Method Detail

      • withSource

        public Backup.Builder withSource​(java.io.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​(java.io.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 to false.
        Parameters:
        fakeBlobStore - true if a file-based blob store should be simulated, false otherwise.
        Returns:
        this builder.
      • build

        public Backup build()
        Create an executable version of the Backup command.
        Returns:
        an instance of Runnable.