borg-backup-ui
borg-backup-ui copied to clipboard
Bug: Symlinked source roots create empty Borg archives
A user reported that selecting a FUSE-style source path such as /mnt/user/appdata can now be accepted by the wizard, but the resulting Borg archive contains only the link and no data. The attached backup log shows Borg create completing successfully with Number of files: 0 and This archive: 0 B while the selected source is /mnt/user/appdata.
Observed:
- Backup validation reports the source path as existing.
- Borg create runs successfully.
- The archive contains no file data.
- This can affect newly created repositories and jobs when the selected source root is a symlink or resolves through a symlinked share path.
Expected:
- If a selected backup source root is a symlink to a directory, Borg Backup UI should pass the resolved directory target to borg create so the directory contents are backed up.
- Exclusion paths below that symlinked source root should be resolved consistently to keep exclusions working.
- Normal /mnt/user FUSE directories that are not symlinks should remain unchanged.
Notes:
- Borg archives symlinks as symlinks and does not follow a symlinked source root by default.
- The repository deletion problem mentioned in the same report needs the exact UI/API error before it can be diagnosed separately.