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

Accept USB storage subdirectories with consistent mount validation

Open borg-codex-bot opened this issue 2 months ago • 0 comments

USB backups using a profile path such as /mnt/disks/USBHDD/borg-backup are skipped even though the USB drive is mounted at /mnt/disks/USBHDD and the profile status reports OK. Two users reported this configuration.

The backup preflight introduced in #502 requires the configured directory itself to be a mount point. The profile status uses findmnt -T and accepts a containing filesystem. This discrepancy is unrelated to permanent job IDs.

Agreed fix:

  • Support both a USB mount point and an existing subdirectory on that drive without changing stored profiles, repository paths, job IDs or history.
  • Use one read-only mount/access check for profile status and backup preflight.
  • Reject missing mounts, leftover directories backed by the system filesystem, read-only targets and inaccessible directories. Preserve explicit I/O failure reporting before Docker/VM changes and Borg commands.
  • Show the configured storage path and detected mount point in diagnostics; clarify the USB path label in German and English.
  • Cover mount roots, nested directories, absent/detached drives, path boundaries/symlinks, read-only/access errors and consistent caller outcomes with regression tests.

No configuration migration, automatic mount, file relocation or USB write probes are required. Publish a test-channel candidate for the affected users before stable promotion.

borg-codex-bot avatar Sep 15 '26 07:09 borg-codex-bot