public function compressGzip() { $input = JFactory::getApplication()->input; $key = $input->get('key', '', 'cmd'); $seek = $input->get('seek', 0, 'cmd'); $options = array('key' => $key); try { $backup = new RSFormProBackup($options); $archive = new RSFormProTar($backup->getPath()); // GZIP compress it. $seek = $archive->compress($seek); // Continue with GZIP archive creation $this->showResponse(array('status' => 'ok', 'step' => $seek ? 'compress-gzip' : 'done', 'seek' => $seek)); } catch (Exception $e) { $this->showError($e->getMessage()); } }