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"; if(!$dms->createDump($dump_name)) UI::exitError(getMLText("admin_tools"),getMLText("error_occured")); 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"); ?>