borg-backup-ui icon indicating copy to clipboard operation
borg-backup-ui copied to clipboard

Make database dump paths forgiving and validation actionable

Open borg-codex-bot opened this issue 1 month ago • 0 comments

A normal dump directory ending in / is rejected with a generic invalid-profile toast. The profile feedback tests replaced the real showMsg helper, hiding the fact that it converts page feedback into floating notifications. A profile-wide retained-dump listing also reports never-created directories as failures, even while editing a new profile. The maintainer requested a simpler directory workflow and automatic creation of missing subdirectories.

  • Normalize trailing separators on directory inputs without relaxing traversal or mount validation.
  • Return safe field identifiers and actionable validation errors; render them at the relevant input with persistent inline save feedback using the real feedback helper.
  • Create missing nested dump directories on an explicit test dump/backup beneath the selected mounted local pool. Keep listing and profile saving read-only, preserve existing modes and reject symlink/filesystem escapes.
  • Treat a not-yet-created dump directory as an empty initial state, explain that the listing covers all saved profiles, and retain actionable mount/access failures.
  • Replace permission-mode jargon in the main UI with concise directory instructions. Update bilingual help and exercise real backend validation and browser feedback, rather than substituting the production feedback helper.

User-visible bug fix and workflow improvement. Pending release notes and a verified test-channel candidate are required; no stable approval.

Additional maintainer feedback: a large (about 6 GB) database test dump only shows Running. Add live current-database/phase, elapsed time and streamed byte counts, including preparation and final verification. Keep live telemetry in memory instead of repeatedly writing to boot storage. No invented percentage or ETA without a reliable total. Explain inputs and completed actions in concise user-facing language.

borg-codex-bot avatar Oct 30 '26 12:10 borg-codex-bot