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