call('db:backup', array('filename' => $db_dump)); echo $zip_file."\n"; echo $db_dump."\n"; Zipper::make($zip_file) ->folder('avatars')->add($files['avatars']) ->folder('models')->add($files['models']) ->folder('suppliers')->add($files['suppliers']) ->folder('private_uploads')->add($files['private_uploads']) ->folder('database')->add($db_dump)->close(); $this->info('Backup file created at '.$zip_file); $this->info('Removing SQL dump at '.$db_dump); unlink($db_dump); } }