TISUnion / TISUnion/PrimeBackup
[功能建议] 备份过程支持推送通知(Webhook/API回调方案)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 145
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
需求概述
希望 PrimeBackup 在每次执行备份或恢复任务时(无论成功或失败),能够提供一种“主动推送”通知能力,方便服务器管理员第一时间获悉任务状态。可为插件增加事件钩子或 Webhook 回调机制,以便集成诸如 Bark、Server酱等常见第三方通知服务,以及与其它自动化/监控系统协作。
主要动机与适用场景
- 管理员希望及时获知备份/恢复任务的成功、失败或异常结果,提升安全性与自动化水平;
- 当前仅靠日志或手动检查不足以满足无人值守、自动化运维需求;
- 希望不同事件节点(如“开始”“完成”“失败”等)均可推送自定义信息,方便与常用通用消息服务(如 Bark、Server酱、Webhook等)对接;
- 未来可结合更多通知渠道(如 Discord、钉钉、邮件、Telegram等)扩展;
需求要点
- 支持插件端主动将关键事件推送到用户指定的 API 或 Webhook 地址;
- 事件类型建议包括:备份开始、成功、失败、恢复完成等;
- 推送内容包含足够的任务、状态与服务器上下文信息,供第三方服务处理和展示;
- 用户可自定义要推送的事件类型与目标服务的 Endpoint;
- 官方可在文档中给出集成主流推送服务(如 Bark、Server酱等)的范例说明;
技术参考
可以借鉴 Restic、Duplicati、BorgBackup 等开源备份系统中对通知/钩子的实现方式,推荐采用事件回调机制,兼容常见 Webhook 通用处理流程,便于扩展与脚本化自定义。
希望能够考虑提供该功能,我认为对于服务器运维是有必要和帮助的。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the backup and restore lifecycle and existing plugin extension points first; the issue names no files, tests, or entry points. A complete implementation would need an agreed event model, configurable endpoints and event selection, delivery behavior, and integration examples for Bark or Server酱.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, devops, observability
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100