/**
  * Database Backup Action
  *
  * @return void
  */
 public function dbBackupAction()
 {
     $path = BackupUtility::backupTable(PATH_site . 'backup/database/');
     // TODO: translate messages
     $this->addFlashMessage('Datei geschieben ' . $path, 'Backup vollständig');
     $this->forward('index');
 }
 /**
  * @param string $folder
  *
  * @return bool
  */
 protected function backupFolder($folder)
 {
     GeneralUtility::mkdir_deep($this->backupPath);
     $compressedFileName = $folder . '_' . time() . '.tar';
     $phar = new \PharData($this->backupPath . $compressedFileName);
     if ($phar->buildFromDirectory(PATH_site . $folder, '/^(?!_temp_|_processed_|_recycler_).*/')) {
         BackupUtility::generateBackupLog($folder, $compressedFileName . '.gz', $this->backupPath, $this->backupsToKeep);
         BackupUtility::gzCompressFile($this->backupPath . $compressedFileName);
         return true;
     }
     return false;
 }