Package io.camunda.zeebe.backup.api
Interface BackupStore
public interface BackupStore
A store where the backup is stored *
-
Method Summary
Modifier and TypeMethodDescriptionDelete all state related to the backup from the storage.Returns the status of the backuplist(BackupIdentifierWildcard wildcard) Uses the given wildcard to list all backups matching this wildcard.markFailed(BackupIdentifier id, String failureReason) Marks the backup as failed.restore(BackupIdentifier id, Path targetFolder) Restores the backupSaves the backup to the backup storage.
-
Method Details
-
save
Saves the backup to the backup storage. -
getStatus
Returns the status of the backup -
list
Uses the given wildcard to list all backups matching this wildcard. -
delete
Delete all state related to the backup from the storage. Backups with statusBackupStatusCode.IN_PROGRESSis not deleted. The caller of this method must first mark it as failed. -
restore
Restores the backup -
markFailed
Marks the backup as failed. If saving a backup failed, the backups store must mark it as failed. This method can be used if we want to explicitly mark a partial backup as failed. -
closeAsync
CompletableFuture<Void> closeAsync()
-