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

Mount SMB storage throughout repository validation and creation in wizard and Settings

Open borg-codex-bot opened this issue 3 weeks ago • 0 comments

Problem

On Unraid 7.3.4 with plugin 2026.11.08.1742, a user reported the same first-backup failure with Ugreen and Synology SMB servers. The initial setup wizard was used first, followed by a second storage/repository through Settings. SMB status checks succeeded; automatic mounting and keep-mounted were disabled.

Repository files were visible only under the local Unraid mount-point directory, not in the NAS file manager. At backup start the SMB share mounted successfully, hiding the local repository, and Borg reported that the repository did not exist.

The repository validation/create/import path does not acquire an SMB mount. A prior browse or profile check can release its temporary mount before borg init runs. Creating a repository must not depend on keep-mounted or startup-mount preferences.

Expected behavior

  • Acquire the configured SMB share before inspecting repository targets, creating or importing repositories, and reading the resulting Borg metadata.
  • Keep that mount for the complete operation in both initial setup and Settings, using the common repository API.
  • Abort before local directory/secret creation or Borg execution if mounting fails.
  • Preserve pre-existing mounts and keep-mounted preferences; clean up only temporary mounts owned by the operation, including failure paths.
  • Do not automatically delete, move or overwrite repositories previously created under unmounted local directories.

Validation and release

Add focused regressions for both UI entry points and mount ownership/failure behavior. Complete PR CI and publish/verify a test-channel candidate for maintainer testing before stable promotion. Record the fix in user-facing release notes and bilingual guidance, including the boundary for existing misplaced repositories.

Type: bug. Impact: user-visible; repository creation correctness and backup reliability. Release note: required.

borg-codex-bot avatar Nov 09 '26 07:11 borg-codex-bot