diff --git a/src/Commands/BackupCommand.php b/src/Commands/BackupCommand.php index 3017b8ef..ac70c2e7 100644 --- a/src/Commands/BackupCommand.php +++ b/src/Commands/BackupCommand.php @@ -66,7 +66,7 @@ protected function getAllFilesToBeBackedUp() $this->comment('Database dumped'); } - if ($this->option('only-db')) { + if ($this->option('only-db') || config('laravel-backup.source.only-db')) { return $files; } diff --git a/src/config/laravel-backup.php b/src/config/laravel-backup.php index c32b6b32..eed994ef 100644 --- a/src/config/laravel-backup.php +++ b/src/config/laravel-backup.php @@ -28,6 +28,11 @@ * Should the database be part of the back up. */ 'backup-db' => true, + + /* + * Should the database be the only item backed up. + */ + 'only-db' => false, ], 'destination' => [