Skip to content

Commit 78078fb

Browse files
committed
fixed backup delete function
1 parent 0deaa88 commit 78078fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Classes/Service/BackupService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ public function getBackups(int $start = 0, int $limit = 0): array
8282
public function deleteBackup(string $name): bool
8383
{
8484
$this->indexService->deleteBackup($name);
85+
$backupFilename = $this->getCompressor()->generateFilename($name);
8586

86-
if ($this->filesystem->has($name)) {
87-
$this->filesystem->delete($name);
87+
if ($this->filesystem->has($backupFilename)) {
88+
$this->filesystem->delete($backupFilename);
8889
}
8990

9091
$this->logger->info('deleted backup '.$name);

0 commit comments

Comments
 (0)