/** * Execure the backup command. * * @return void */ public function fire() { $backup = new BackupProcedure($this->getDumper()); $archiver = $this->getArchiver(); $storer = $this->getStorer(); if ($archiver) { $backup->setArchiver($archiver); } if ($storer) { $backup->setStorer($storer); } $backup->backup(); if ($this->option('cleanup')) { $backup->cleanup(); } }