Backup rotation for schedules.
This commit is contained in:
parent
085fa8dcb5
commit
1f01c653f1
3 changed files with 24 additions and 11 deletions
|
@ -69,7 +69,7 @@ class RunTaskJob extends Job implements ShouldQueue
|
|||
$commandRepository->setServer($server)->send($this->task->payload);
|
||||
break;
|
||||
case 'backup':
|
||||
$backupService->setIgnoredFiles(explode(PHP_EOL, $this->task->payload))->handle($server, null);
|
||||
$backupService->setIgnoredFiles(explode(PHP_EOL, $this->task->payload))->handle($server, null, true);
|
||||
break;
|
||||
default:
|
||||
throw new InvalidArgumentException('Cannot run a task that points to a non-existent action.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue