Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

恢复备份时,从已有备份恢复建议改为选择 backups 目录的文件进行恢复。 #6370

Closed
ruibaby opened this issue Jul 24, 2024 · 3 comments · Fixed by #6486
Assignees
Labels
area/core Issues or PRs related to the Halo Core kind/improvement Categorizes issue or PR as related to a improvement.
Milestone

Comments

@ruibaby
Copy link
Member

ruibaby commented Jul 24, 2024

你当前使用的版本

2.17.x

描述一下此特性

image

如图,这个功能建议直接改为扫描 backups 目录,并直接选择文件进行恢复,理由如下:

  1. 数据库中的备份条目并不准确,尤其是已经经历过恢复的情况下,这里可能有条目,但备份文件不一定有。
  2. 考虑到备份文件大小和服务器带宽问题,直接从服务器选择备份文件恢复会减少出错率和来回尝试的成本(恢复可能失败,但重试只能重新上传,如果直接从服务器选择,至少可以提前上传到服务器。)

/area core
/kind improvement

附加信息

No response

@f2c-ci-robot f2c-ci-robot bot added area/core Issues or PRs related to the Halo Core kind/improvement Categorizes issue or PR as related to a improvement. labels Jul 24, 2024
@ruibaby ruibaby added this to the 2.19.x milestone Aug 5, 2024
@JohnNiang
Copy link
Member

/assign

@JohnNiang
Copy link
Member

我将提供新的接口:http://localhost:8090/apis/console.api.migration.halo.run/v1alpha1/backups,返回结果示例如下所示:

[
  {
    "filename": "20240820142136-backup-AagZi.zip",
    "size": 209172403,
    "lastModifiedTime": "2024-08-20T06:21:47.289905555Z"
  }
]

恢复的时候提供文件名参数即可。

@ruibaby
Copy link
Member Author

ruibaby commented Aug 20, 2024

我将提供新的接口:http://localhost:8090/apis/console.api.migration.halo.run/v1alpha1/backups,返回结果示例如下所示:

[
  {
    "filename": "20240820142136-backup-AagZi.zip",
    "size": 209172403,
    "lastModifiedTime": "2024-08-20T06:21:47.289905555Z"
  }
]

恢复的时候提供文件名参数即可。

/backup-files 可能会更好?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Issues or PRs related to the Halo Core kind/improvement Categorizes issue or PR as related to a improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants