Add Backup REST API endpoints (Phase 5-6)
Some checks failed
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled

REST API Implementation:
- 8 backup/snapshot endpoints added to server.rs
- BackupScheduler: add get_config()/set_config() methods

Endpoints:
- GET /api/v2/backup/stats - Scheduler status
- GET/POST /api/v2/backup/config - Config management
- POST /api/v2/backup/run - Manual backup trigger
- GET /api/v2/snapshots - List snapshots
- POST/DELETE /api/v2/snapshots/:name - Create/delete snapshot
- POST /api/v2/snapshots/:name/restore - Restore snapshot
- GET /api/v2/storage/stats - Storage metrics

Test Results:
- curl /api/v2/backup/stats 
- curl /api/v2/backup/config 
- curl /api/v2/storage/stats 
- curl /api/v2/snapshots 

Build: 495 tests pass
Server: Port 11438 running with new endpoints
This commit is contained in:
Warren
2026-06-24 03:25:41 +08:00
parent 90219a65ad
commit 26d4199203
3 changed files with 171 additions and 1 deletions

Binary file not shown.