Package io.camunda.zeebe.restore
Class PartitionRestoreService
java.lang.Object
io.camunda.zeebe.restore.PartitionRestoreService
Restores a backup from the given
BackupStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrestore(long backupId) Downloads backup from the backup file, restore it to the partition's data directory.
-
Constructor Details
-
PartitionRestoreService
-
-
Method Details
-
restore
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
-