Skip to content

Commit

Permalink
[Backups]: split for local, production
Browse files Browse the repository at this point in the history
  • Loading branch information
singlephon committed Sep 27, 2023
1 parent 0fef7f1 commit 63730f7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
* The disk names on which the backups will be stored.
*/
'disks' => [
'backups',
env('APP_ENV') == 'production' ? 'backups' : 'local',
'dropbox'
],
],
Expand Down Expand Up @@ -223,7 +223,10 @@
'monitor_backups' => [
[
'name' => env('APP_NAME', 'laravel-backup'),
'disks' => ['backups', 'dropbox'],
'disks' => [
env('APP_ENV') == 'production' ? 'backups' : 'local',
'dropbox'
],
'health_checks' => [
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1,
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumStorageInMegabytes::class => 5000,
Expand Down

0 comments on commit 63730f7

Please sign in to comment.