(feature) Add backup safety and preflight validation #13

Merged
parkel merged 3 commits from issue-3-backup-safety-preflight-validation into master 2026-05-21 00:58:23 +02:00
Owner

Implements issue #3.

Summary:

  • Add host backup preflight gates and effective config preview.
  • Add on-demand remote connection preflight for SSH, remote rsync, and source root access.
  • Add readable dry-run summaries with estimates, warnings, and rsync log links.

Tests:

  • docker compose run --rm web python manage.py test pobsync_backend --verbosity 2
  • Ran 157 tests: OK

Closes #3

Implements issue #3. Summary: - Add host backup preflight gates and effective config preview. - Add on-demand remote connection preflight for SSH, remote rsync, and source root access. - Add readable dry-run summaries with estimates, warnings, and rsync log links. Tests: - docker compose run --rm web python manage.py test pobsync_backend --verbosity 2 - Ran 157 tests: OK Closes #3
parkel added 3 commits 2026-05-21 00:58:17 +02:00
Introduce a host preflight layer that separates dry-run blockers from real backup blockers.
Show the effective per-host backup configuration in Django before queueing a run.

Block real backup queueing when failed host checks remain, while still allowing dry-runs
when only local storage preparation is missing.
Add an on-demand host preflight action that verifies SSH reachability,
remote rsync availability, and remote source root access.

Persist the latest preflight result on the host config, render it in Django,
and block real backups when the last remote preflight failed.
Surface dry-run status, transfer estimates, file counts, warnings, and the full
rsync log link directly on the run detail page.

Keep raw rsync output and JSON available, but make the common review path easier
to scan before starting a real backup.
parkel merged commit 26265be440 into master 2026-05-21 00:58:23 +02:00
parkel deleted branch issue-3-backup-safety-preflight-validation 2026-05-21 00:58:23 +02:00
Sign in to join this conversation.