laravel-backup changes
This commit is contained in:
@@ -31,8 +31,10 @@ class Kernel extends ConsoleKernel
|
||||
$schedule->command(Hourly::class)->hourly();
|
||||
|
||||
// When spatie-backups runs
|
||||
$schedule->command('backup:clean')->daily()->at('01:00');
|
||||
$schedule->command('backup:run')->daily()->at('02:00');
|
||||
if (config('backup.backup.enabled', false) === true) {
|
||||
$schedule->command('backup:clean')->daily()->at('01:00');
|
||||
$schedule->command('backup:run')->daily()->at('02:00');
|
||||
}
|
||||
|
||||
// Update the last time the cron was run
|
||||
/** @var CronService $cronSvc */
|
||||
|
||||
@@ -13,8 +13,9 @@ use Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumStorageInMegabytes;
|
||||
|
||||
return [
|
||||
'backup' => [
|
||||
'name' => config('app.name', 'phpvms-backup'),
|
||||
'source' => [
|
||||
'name' => config('app.name', 'phpvms-backup'),
|
||||
'enabled' => false,
|
||||
'source' => [
|
||||
'files' => [
|
||||
'include' => [
|
||||
base_path(),
|
||||
@@ -72,7 +73,7 @@ return [
|
||||
*
|
||||
* If you do not want any compressor at all, set it to null.
|
||||
*/
|
||||
'database_dump_compressor' => null,
|
||||
'database_dump_compressor' => Spatie\DbDumper\Compressors\GzipCompressor::class,
|
||||
|
||||
'destination' => [
|
||||
|
||||
|
||||
Reference in New Issue
Block a user