isAdmin()) { UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); } if (!$settings->_backupDir) { UI::exitError(getMLText("admin_tools"),getMLText("no_backup_dir")); } $v = new SeedDMS_Version; $dump_name = addDirSep($settings->_backupDir).date('Y-m-d\TH-i-s')."_".$v->version().".sql"; $fp = fopen($dump_name, "w"); if(!$fp) UI::exitError(getMLText("admin_tools"),getMLText("error_occured")); if(!$dms->getDb()->createDump($fp)) { fclose($fp); UI::exitError(getMLText("admin_tools"),getMLText("error_occured")); } fclose($fp); if (SeedDMS_Core_File::gzcompressfile($dump_name,9)) unlink($dump_name); else UI::exitError(getMLText("admin_tools"),getMLText("error_occured")); add_log_line(); header("Location:../out/out.BackupTools.php"); ?>