Skip to content

feat: add local backup/restore and WebDAV remote sync - #85

Open
yancongya wants to merge 1 commit into
hero8152:mainfrom
yancongya:feat/backup-local-webdav
Open

feat: add local backup/restore and WebDAV remote sync#85
yancongya wants to merge 1 commit into
hero8152:mainfrom
yancongya:feat/backup-local-webdav

Conversation

@yancongya

Copy link
Copy Markdown

新增完整的备份/恢复功能,支持:

  • 创建本地备份(可选包含 data/、API 密钥、资产库/输入/输出/上传文件)
  • 本地备份列表、下载、删除
  • 从 ZIP 文件恢复(可选恢复 API 密钥)
  • WebDAV 配置管理
  • 推送到远程 / 从远程拉取备份
  • 自动创建远程目录(MKCOL)

新增 12 个 API 路由、一个备份管理页面和对应 JS。

- POST /api/backup, GET /api/backup/list, DELETE /api/backup/{id}
- GET /api/backup/download/{id}, POST /api/backup/restore
- WebDAV config: GET/PUT/DELETE /api/backup/webdav
- WebDAV sync: POST /api/backup/webdav/push, POST /api/backup/webdav/pull, GET /api/backup/webdav/list
- Auto-create remote path via MKCOL before push
- New backup-settings.html page with local/remote backup management
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant