Update Backup.php

This commit is contained in:
Bozhidar 2024-05-09 15:59:41 +03:00
parent bca5e2b9b1
commit 0b11ce9324

View file

@ -161,10 +161,12 @@ class Backup extends Model
$checkProcess = shell_exec('ps -p ' . $this->process_id . ' | grep ' . $this->process_id);
if (Str::contains($checkProcess, $this->process_id)) {
// $backupLog = file_get_contents($this->path.'/backup.log');
// $backupLog = substr($backupLog, -3000, 3000);
$this->size = 0;
$this->backup_log = file_get_contents($this->path.'/backup.log');
$this->save();
// $this->size = 0;
//$this->backup_log = $backupLog;
// $this->save();
return [
'status' => 'processing',