- Updated default info text to be cyan instead of blue for readability.
- Added "ZIP" in backup command details to make the file type clear.
- Updated some really low MySQL timeouts.
$output = new ConsoleOutput();
$formatter = $output->getFormatter();
$formatter->setStyle('warn', new OutputFormatterStyle('yellow'));
$output = new ConsoleOutput();
$formatter = $output->getFormatter();
$formatter->setStyle('warn', new OutputFormatterStyle('yellow'));
-$formatter->setStyle('info', new OutputFormatterStyle('blue'));
+$formatter->setStyle('info', new OutputFormatterStyle('cyan'));
$formatter->setStyle('success', new OutputFormatterStyle('green'));
$formatter->setStyle('error', new OutputFormatterStyle('red'));
$formatter->setStyle('success', new OutputFormatterStyle('green'));
$formatter->setStyle('error', new OutputFormatterStyle('red'));
{
$this->setName('backup');
$this->setDescription('Backup a BookStack installation to a single compressed ZIP file.');
{
$this->setName('backup');
$this->setDescription('Backup a BookStack installation to a single compressed ZIP file.');
- $this->addArgument('backup-path', InputArgument::OPTIONAL, 'Outfile file or directory to store the resulting backup file.', '');
+ $this->addArgument('backup-path', InputArgument::OPTIONAL, 'Outfile file or directory to store the resulting backup ZIP file.', '');
$this->addOption('no-database', null, InputOption::VALUE_NONE, "Skip adding a database dump to the backup");
$this->addOption('no-uploads', null, InputOption::VALUE_NONE, "Skip adding uploaded files to the backup");
$this->addOption('no-themes', null, InputOption::VALUE_NONE, "Skip adding the themes folder to the backup");
$this->addOption('no-database', null, InputOption::VALUE_NONE, "Skip adding a database dump to the backup");
$this->addOption('no-uploads', null, InputOption::VALUE_NONE, "Skip adding uploaded files to the backup");
$this->addOption('no-themes', null, InputOption::VALUE_NONE, "Skip adding the themes folder to the backup");
{
$output = (new ProgramRunner('mysql', '/usr/bin/mysql'))
->withEnvironment(['MYSQL_PWD' => $this->password])
{
$output = (new ProgramRunner('mysql', '/usr/bin/mysql'))
->withEnvironment(['MYSQL_PWD' => $this->password])
- ->withTimeout(240)
- ->withIdleTimeout(5)
+ ->withTimeout(300)
+ ->withIdleTimeout(300)
->runCapturingStdErr([
'-h', $this->host,
'-P', $this->port,
->runCapturingStdErr([
'-h', $this->host,
'-P', $this->port,