Use proper newline, not literal \n
This commit is contained in:
parent
794cf9d9dd
commit
dbb6f69e00
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ class DaemonBackupRepository extends DaemonRepository
|
|||
'json' => [
|
||||
'adapter' => $this->adapter ?? config('backups.default'),
|
||||
'uuid' => $backup->uuid,
|
||||
'ignore' => implode('\n', $backup->ignored_files),
|
||||
'ignore' => implode("\n", $backup->ignored_files),
|
||||
],
|
||||
]
|
||||
);
|
||||
|
|
|
@ -141,7 +141,7 @@ class InitiateBackupService
|
|||
'server_id' => $server->id,
|
||||
'uuid' => Uuid::uuid4()->toString(),
|
||||
'name' => trim($name) ?: sprintf('Backup at %s', CarbonImmutable::now()->toDateTimeString()),
|
||||
'ignored_files' => is_array($this->ignoredFiles) ? array_values($this->ignoredFiles) : [],
|
||||
'ignored_files' => array_values($this->ignoredFiles ?? []),
|
||||
'disk' => $this->backupManager->getDefaultAdapter(),
|
||||
], true, true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue