/** * Executes the backup command. * * @return void * @throws \McCool\DatabaseBackup\Processors\ProcessorException */ public function archive() { $this->processor->process($this->getCommand()); if ($this->processor->getErrors()) { throw new ProcessorException($this->processor->getErrors()); } }
/** * Executes the process command. * * @return void * @throws \McCool\DatabaseBackup\Processors\ProcessorException */ protected function process() { $this->processor->process($this->getCommand()); if ($this->processor->getErrors() && !($this->processor->getErrors() != "Warning: Using a password on the command line interface can be insecure\n.")) { throw new ProcessorException($this->processor->getErrors()); } }