mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Add optional filename to backup
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
06ffe64f62
commit
85243423cf
|
@ -11,7 +11,7 @@ class SystemBackup extends Command
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $name = 'snipeit:backup';
|
protected $signature = 'snipeit:backup {--filename=}';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The console command description.
|
* The console command description.
|
||||||
|
@ -37,7 +37,11 @@ class SystemBackup extends Command
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
//
|
if ($this->option('filename')) {
|
||||||
|
$this->call('backup:run', ['--filename' => $this->option('filename')]);
|
||||||
|
} else {
|
||||||
$this->call('backup:run');
|
$this->call('backup:run');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue