Laravel-backup: I can't find any way to disable backup from .env file

Created on 28 Aug 2019  路  1Comment  路  Source: spatie/laravel-backup

I'm trying to disable laravel-backup for dev branch and I can't find a way to do it in .env file. Is it possible to do?

Most helpful comment

Just don't run the backup commands. For example, in your Console Kernel.php:

```php
if (app()->environment('production')) {
$schedule->command('backup:run')->daily()->at('02:00');
}

>All comments

Just don't run the backup commands. For example, in your Console Kernel.php:

```php
if (app()->environment('production')) {
$schedule->command('backup:run')->daily()->at('02:00');
}

Was this page helpful?
0 / 5 - 0 ratings