From 17ca3659c55b96ce348ad90da3b27eab85ac2509 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sat, 19 Dec 2020 11:50:35 -0700 Subject: [PATCH] Change 'backups.prune_age' default to 6 hours --- app/Console/Kernel.php | 2 +- config/backups.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index a052ae39e..4fa0845e5 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -26,7 +26,7 @@ class Kernel extends ConsoleKernel $schedule->command('p:schedule:process')->everyMinute()->withoutOverlapping(); // Every 30 minutes, run the backup pruning command so that any abandoned backups can be deleted. - $pruneAge = config('backups.prune_age', 60); + $pruneAge = config('backups.prune_age', 360); // Defaults to 6 hours (time is in minuteS) if ($pruneAge > 0) { $schedule->command('p:maintenance:prune-backups', [ '--since-minutes' => $pruneAge, diff --git a/config/backups.php b/config/backups.php index b2c16f1a1..a309a9ee6 100644 --- a/config/backups.php +++ b/config/backups.php @@ -12,9 +12,9 @@ return [ // uses to upload backups to S3 storage. Value is in minutes, so this would default to an hour. 'presigned_url_lifespan' => env('BACKUP_PRESIGNED_URL_LIFESPAN', 60), - // The time in which to wait before automatically marking a backup as failed. - // To disable this feature, set the value to `0`. - 'prune_age' => env('BACKUP_PRUNE_AGE', 60), + // The time to wait before automatically failing a backup, time is in minutes and defaults + // to 6 hours. To disable this feature, set the value to `0`. + 'prune_age' => env('BACKUP_PRUNE_AGE', 360), 'disks' => [ // There is no configuration for the local disk for Wings. That configuration