Class PartitionRestoreService

java.lang.Object
io.camunda.zeebe.restore.PartitionRestoreService

public class PartitionRestoreService extends Object
Restores a backup from the given BackupStore.
  • Constructor Details

  • Method Details

    • restore

      public CompletableFuture<BackupDescriptor> restore(long backupId)
      Downloads backup from the backup file, restore it to the partition's data directory. After restoring, it truncates the journal to the checkpointPosition so that the last record in the journal will be the checkpoint record at checkpointPosition.
      Parameters:
      backupId - id of the backup to restore from
      Returns:
      the descriptor of the backup it restored