borgbackupserver icon indicating copy to clipboard operation
borgbackupserver copied to clipboard

Support S3 repo sync outside of /var/bbs filesystem

Open allenpomeroy opened this issue 6 months ago • 2 comments

Description

Enhancement - support S3 sync from repos that live on non-standard filesystem locations.

Use Case

When S3 sync is enabled on a BBS repo that lives outside /var/bbs, an error is logged: S3 sync failed: Error: local path must be under /var/bbs/. For installations that must use a non-standard filesystem directory path, such as /opt/bbs, this prevents the use of S3 sync.

Alternatives Considered

Current workarounds include either symbolic links from actual storage filesystem to /var/bbs/repos or mount of repo storage space under the /var/bbs tree.

allenpomeroy avatar May 15 '26 16:05 allenpomeroy

That seems like a bug for sure. Looking into it.

marcpope avatar May 18 '26 02:05 marcpope

Fixed in 9e96c85. The two rclone actions in bbs-ssh-helper were the only privileged operations still using a hardcoded /var/bbs/ regex instead of the shared is_allowed_path helper everything else uses. Repos under any registered storage location (/etc/bbs/allowed-storage-paths) can now S3 sync and restore normally. Ships in the next release.

marcpope avatar May 19 '26 15:05 marcpope