src/Commands/BackupCommandExport.php 1 location
|
@@ 36-40 (lines=5) @@
|
| 33 |
|
$backupInstance = $this->getBackupInstance($this->input->getOption('database')); |
| 34 |
|
$backupInstance->setEnabled(true); |
| 35 |
|
|
| 36 |
|
if ($this->input->getOption('path') !== null) { |
| 37 |
|
$backupInstance->setPath($this->input->getOption('path')); |
| 38 |
|
} else { |
| 39 |
|
$backupInstance->setPath('app/storage/backup/'); |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
if ($this->input->getOption('compress') !== null) { |
| 43 |
|
$backupInstance->setCompress($this->input->getOption('compress') != 'false' ?: false); |
src/Commands/BackupCommandRestore.php 1 location
|
@@ 35-39 (lines=5) @@
|
| 32 |
|
$backupInstance = $this->getBackupInstance($this->input->getOption('database')); |
| 33 |
|
$backupInstance->setEnabled(true); |
| 34 |
|
|
| 35 |
|
if ($this->input->getOption('path') !== null) { |
| 36 |
|
$backupInstance->setPath($this->input->getOption('path')); |
| 37 |
|
} else { |
| 38 |
|
$backupInstance->setPath('app/storage/backup/'); |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
$selection = $this->choice( |
| 42 |
|
'Which database restoration file should be used?', |