Roadmap

Phases are ordered so the core framework is proven on the simplest workload before the hardest ones.

Phase 0 — Foundations

  • Repository and licence (Apache-2.0)

  • CI: lint, type check, docstring coverage, tests with PostgreSQL, docs build, image build

  • Contribution guide

  • Container image and compose.yaml; running on Ubuntu 26.04 (test server)

  • Smoke test with Docker CE on RHEL 10

  • Core: config, DB + migrations, job queue, scheduler tick, backup engine, job runner, events table

  • Audit log API and UI (table and writes exist)

  • Graph client: certificate auth, throttling, batching, delta, streaming

  • Storage engine: filesystem backend, chunking, compression, encryption, packs, check

  • S3 backend (later; local disk first)

  • Module SDK + contract checks

  • Web UI shell: first-run setup, break-glass sign-in + TOTP, module toggles, users, sign-in settings

  • Branding: name, colours, theme, logos, favicon, sign-in message, email footer

  • Setup wizard: device code tenant connection, automatic app registrations (Backup, Restore, Sign-in with roles), permission sync, re-run to renew certificates

  • Backup storage: create or connect (disaster recovery) a filesystem repository inside the backup volume; recovery kit

  • Backup jobs: create/edit/delete, schedule presets or cron, run now, run history with per-object results

  • Tenant page warns when enabled modules need permissions not yet granted

  • Setup wizard: notifications app, expiry warnings, manual fallback

  • Entra OIDC sign-in for the web UI (app roles), sign-in app created by the wizard

  • exo-runner image (PowerShell 7 + ExchangeOnlineManagement) and Exchange device code sign-in

  • Notifications: event delivery with severity threshold, throttling, fallback and retries; Graph (Notifications app, Exchange-scoped Mail.Send) and SMTP senders; settings page with test email; Alerts page

  • Notifications: automated Exchange step (exo-runner), daily summary/weekly report, resolved emails, heartbeat

Phase 1 — Entra ID module

  • Snapshot backup of directory objects and policies (9 categories; unlicensed features skipped)

  • Browse (point in time, search, folders, deleted objects), version history, property-level diff, changes between runs

  • Change alerts: privileged roles, Conditional Access, tenant policies and domains, consents (warning); apps (info)

  • Object/property restore, recycle-bin restore

  • Readable object view in Browse: Details tab with sections, labels and formats per item type, field-level compare; raw JSON and Download JSON kept (see Object view and translation)

Why first: small data, no content streaming, high value (Conditional Access mistakes and deleted objects), and it exercises the whole framework.

Phase 2 — OneDrive module

  • Delta backup, streamed files of any size, folder renames/moves/deletions, resync; Browse with file download and ZIP export

  • Restore to original folders or a new folder, same or another user’s drive

  • Previous file versions (optional)

  • Retention: point-in-time per repository, holds, preview, nightly run with space reclamation, audit-log/alert retention

  • Thinning (GFS), item-age deletion; S3 Object Lock

Phase 3 — Exchange module

  • Mail delta backup (MIME, immutable IDs, moves, folder renames/removals, resumable first sync); email view in Browse

  • Jobs: per-module scope (entire organization / all except / only selected), live progress with estimated time left, Stop, no overlapping runs, interrupted runs marked; 4 mailboxes in parallel

  • Calendar and contacts backup (own calendars, contact folders; JSON plus restore copies)

  • Mail restore (restore copies, original or new folder, any mailbox) and mailbox search

  • Calendar and contacts restore

  • Tasks (Microsoft To Do) backup and restore

  • ICS export (events and tasks) from Browse

  • VCF (contacts) and EML export (one message, or a ZIP of a folder, search or selection)

  • MBOX export (if wanted)

  • Research spike: archive mailbox and full-fidelity export options

  • Research spike: PST writer (see Module system), then PST export

Phase 4 — SharePoint module

  • Libraries (reusing OneDrive drive code), lists, pages, permissions

  • Sites.Selected least-privilege mode

Phase 5 — Hardening for v1.0

  • UI translation: ICU message catalogs, language setting, Spanish and French (beta) (see Object view and translation)

  • Server-side translation: API error codes, module label keys, emails in the organization’s language

  • Native-speaker review of Spanish and French; drop the beta label

  • Reporting (protected objects, license usage, job SLA), weekly report email

  • Copy jobs to a second repository

  • Bandwidth limit (deferred 2026-12-03): one global “limit Microsoft 365 traffic to N Mbit/s” for message downloads, restore copies and imports (not small API calls), with an optional working-hours window (for example Mon–Fri 07:00–19:00, server time). One shared allowance in the worker process. No limit on repository writes.

  • Per-address rate limit on sign-in, bootstrap and two-factor confirmation, if the server is ever meant to face the internet (today: LAN or VPN only, see Deployment)

  • DR runbook: rebuild server from repository

  • Admin guide with screenshots of every wizard step and main screen

  • Load test (large tenant), security review, signed images and SBOM

Later (after v1.0)

  • teams module: teams/channels/settings/membership backup and restore; channel messages (needs Microsoft’s protected API approval), HTML/JSON export

  • S3 backend tuning and Object Lock testing at scale

  • Multi-tenant (MSP) mode

Decisions from planning (2026-12-02)

Question

Answer

Effect

Tenant size

~10 users, < 50 GB

One worker; no large-tenant tuning before v1

Storage

Local disk

filesystem backend first; S3 later

Tenancy

Single tenant

tenant_id kept in the data model; no MSP UI

Licence

Apache-2.0

LICENSE added; see ADR 0005: Apache License 2.0

Mail export

EML and PST

EML first; PST after a writer spike

Veeam migration

Run in parallel (assumed)

No import of Veeam backups

Docs hosting

GitHub Pages, not yet

CI only builds the docs; deploy turns on with repo variable PAGES_ENABLED=true once Pages is enabled

Tenant setup

Web wizard, no pre-registration

Device code sign-in creates the apps (ADR 0006: Wizard creates the app registrations via device code sign-in)

Email notifications

Graph by default (wizard creates backup-alerts mailbox), SMTP as alternative/fallback

Separate Mail.Send-only app (ADR 0007: Email notifications via Graph by default, SMTP as alternative)

Doc screenshots

Wanted

Captured from the running app when the UI exists

Name

Mail Safehouse (mailsafehouse.com / .app), was Simple365Backup

No “365”/”Microsoft” in the name (Microsoft trademark guidance). Internal s365b identifiers, the repository format ID and the Exchange scope name stay; rename of internal identifiers before v1

Languages

English, then Spanish and French (beta until reviewed)

ICU catalogs in the UI; server text next; see Object view and translation

Teams

Not in v1 (not used in the tenant)

teams module moved to “Later”; the module system is unaffected

Container engine (2026-12-03)

Docker only

Podman and Quadlet units dropped; RHEL hosts use Docker CE

Still open

Nothing at the moment.