Session 0006: SSE Streaming Backup & Upload Endpoints
Date: 2026-02-22
Status: Completed
Origin: MDF Webseiten session 0036
Work Done
- [x] Added
upload subcommand to offsite.py CLI (function existed but wasn't wired)
- [x] Converted
create_backup endpoint from plain JSON to SSE streaming
- [x] Converted
upload_offsite endpoint from plain JSON to SSE streaming
- [x] Changed both endpoints to accept GET+POST (EventSource API requires GET)
Key Decisions / Learnings
- EventSource (SSE) requires GET requests — endpoints serving streaming output must accept GET
- Converting to SSE streaming gives real-time feedback for long-running backup and upload operations
- offsite.py had an upload function but it was never exposed as a CLI subcommand — easy fix, high value
Tags: #Session #OpsDashboard #Backups #SSE