Support S3 repo sync outside of /var/bbs filesystem
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.
That seems like a bug for sure. Looking into it.
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.