mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
init: scheduled backups
This commit is contained in:
24
app/Jobs/BackupDatabaseJob.php
Normal file
24
app/Jobs/BackupDatabaseJob.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class BackupDatabaseJob implements ShouldQueue
|
||||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public function __construct(public $backup)
|
||||
{
|
||||
}
|
||||
|
||||
public function handle()
|
||||
{
|
||||
ray('BackupDatabaseJob');
|
||||
ray($this->backup);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user