borg-backup-ui
borg-backup-ui copied to clipboard
Accept USB storage subdirectories with consistent mount validation
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.