An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: deletion of single backup
peaklabs-devc03b629e85a4
diff --git a/app/Livewire/Project/Database/BackupExecutions.php b/app/Livewire/Project/Database/BackupExecutions.phpindex 9ed608ed08..526239eea2 100644--- a/app/Livewire/Project/Database/BackupExecutions.php+++ b/app/Livewire/Project/Database/BackupExecutions.php@@ -61,15 +61,19 @@ class BackupExecutions extends Component? $execution->scheduledDatabaseBackup->database->service->destination->server: $execution->scheduledDatabaseBackup->database->destination->server;- deleteBackupsLocally($execution->filename, $server);+ try {+ deleteBackupsLocally($execution->filename, $server);- if ($this->delete_backup_s3 && $execution->scheduledDatabaseBackup->s3) {- deleteBackupsS3($execution->filename, $server, $execution->scheduledDatabaseBackup->s3);- }+ if ($this->delete_backup_s3 && $execution->scheduledDatabaseBackup->s3) {+ deleteBackupsS3($execution->filename, $execution->scheduledDatabaseBackup->s3);+ }- $execution->delete();- $this->dispatch('success', 'Backup deleted.');- $this->refreshBackupExecutions();+ $execution->delete();+ $this->dispatch('success', 'Backup deleted.');+ $this->refreshBackupExecutions();+ } catch (\Exception $e) {+ $this->dispatch('error', 'Failed to delete backup: '.$e->getMessage());+ }}public function download_file($exeuctionId)