Skip to content

页面支持创建数据库备份 - #835

Merged
icyleaf merged 12 commits into
developfrom
feature/create-backup-and-download-support
Aug 11, 2022
Merged

页面支持创建数据库备份#835
icyleaf merged 12 commits into
developfrom
feature/create-backup-and-download-support

Conversation

@icyleaf

@icyleaf icyleaf commented Aug 3, 2022

Copy link
Copy Markdown
Member

最初版本的备份管理是通过命令行的 rails zealot:backup:createrails zealot:backup:restore 手动创建和恢复,渐渐不太满足需求:

  1. k8s 不再让我用更全面的权限
  2. 需要支持定期自动备份

基于以上原因,想在网页的管理员面板新增一个备份管理功能,支持创建备份,可执行定期备份周期,下载和删除功能。暂时在页面上不提供数据恢复功能。

功能截图

备份计划列表
backup list

创建备份
new backup form

备份文件列表
backup file list

@icyleaf icyleaf added the enhancement New feature or request label Aug 3, 2022
@icyleaf
icyleaf force-pushed the feature/create-backup-and-download-support branch 13 times, most recently from 20d0c07 to ffc8b94 Compare August 9, 2022 11:19
@icyleaf icyleaf changed the title (WIP) 页面支持创建数据库备份 页面支持创建数据库备份 Aug 10, 2022
@icyleaf

icyleaf commented Aug 10, 2022

Copy link
Copy Markdown
Member Author

一期要做的页面可操作的功能已经完成:

  • 定时备份管理(查看、编辑、删除,禁/启用、定时表达式解析,最大保留备份文件数)
  • 手动/定时自动生成备份
  • 管理备份文件(下载,删除)

后续不支持:

  • 在线恢复备份:毕竟恢复备份会造成原有数据的删除,误操作很容易引发数据灾难,如果用户呼声高的话就再考虑其中的恢复逻辑

原有备份,恢复的 rake 功能会暂时关闭,原因是目录结构发生变化无法复用和兼容。

@icyleaf
icyleaf force-pushed the feature/create-backup-and-download-support branch 3 times, most recently from a25f8a2 to a3328bd Compare August 10, 2022 05:13
@icyleaf
icyleaf force-pushed the feature/create-backup-and-download-support branch from a3328bd to ac21216 Compare August 10, 2022 05:18
@icyleaf
icyleaf force-pushed the develop branch 2 times, most recently from f014a5b to 2eab869 Compare August 11, 2022 04:01
@icyleaf
icyleaf merged this pull request into develop Aug 11, 2022
@icyleaf
icyleaf deleted the feature/create-backup-and-download-support branch August 11, 2022 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant