Отправка копий базы на FTP (свой клиент на потоках) и второй пример расписания
This commit is contained in:
1 parent
0732897a8c
commit
7355566289
20 files changed
+1040
-12
No files matched your search
@@ -7,6 +7,7 @@ namespace Rsgrinko\Proton\Backup;
|
||||
use Rsgrinko\Proton\Access\Permission;
|
||||
use Rsgrinko\Proton\Notifications\Notify;
|
||||
use Rsgrinko\Proton\Queue\Job;
|
||||
use Rsgrinko\Proton\Queue\Queue;
|
||||
use Rsgrinko\Proton\Support\Logger;
|
||||
|
||||
/**
|
||||
@@ -41,6 +42,12 @@ final class BackupJob extends Job
|
||||
'size' => $info['size'],
|
||||
'removed' => $removed,
|
||||
]);
|
||||
|
||||
// Отправка на FTP — своя задача: сеть до чужого сервера не должна
|
||||
// держать дамп, который и так уже готов и годен локально
|
||||
if (Ftp::enabled()) {
|
||||
Queue::push(ShipBackupJob::class, ['name' => $info['name']]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user