@RestController @Feature(cls=SYSTEM_BACKUP) @SystemPermission public class BackupInfoController extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
BackupInfoController(BackupInfoService backupInfoService) |
Modifier and Type | Method and Description |
---|---|
Object |
backup(Map<String,Object> map)
创建备份任务
|
Object |
deleteBackup(String id)
删除备份数据
|
void |
downloadBackup(String id)
下载备份数据
|
Object |
loadBackupList()
分页加载备份列表数据
|
Object |
loadTableNameList()
读取数据库表名称列表
|
Object |
restoreBackup(String id)
还原备份数据
还原的时候不能异步了,只能等待备份还原成功或者失败
|
Object |
uploadBackupFile()
导入备份数据
|
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNode
checkPathSafe, pathSafe
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
public BackupInfoController(BackupInfoService backupInfoService)
@PostMapping(value="/system/backup/list") @Feature(method=LIST) public Object loadBackupList()
@PostMapping(value="/system/backup/delete") @Feature(method=DEL) @SystemPermission(superUser=true) public Object deleteBackup(@ValidatorItem(value=NOT_BLANK,msg="\u6570\u636e id \u4e0d\u80fd\u4e3a\u7a7a") String id)
id
- 备份 ID@PostMapping(value="/system/backup/restore") @Feature(method=EXECUTE) public Object restoreBackup(@ValidatorItem(value=NOT_BLANK,msg="\u6570\u636e id \u4e0d\u80fd\u4e3a\u7a7a") String id)
id
- 备份 ID@PostMapping(value="/system/backup/create") @Feature(method=EDIT) public Object backup(@RequestBody Map<String,Object> map)
map
- 参数 map.tableNameList 选中备份的表名称@PostMapping(value="/system/backup/upload") @Feature(method=UPLOAD) @SystemPermission(superUser=true) public Object uploadBackupFile() throws IOException
IOException
@GetMapping(value="/system/backup/download") @Feature(method=DOWNLOAD) public void downloadBackup(@ValidatorItem(value=NOT_BLANK,msg="\u6570\u636e id \u4e0d\u80fd\u4e3a\u7a7a") String id)
id
- 备份 IDCopyright © 2017–2022. All rights reserved.