mirror of
https://github.com/borgbackup/borg.git
synced 2026-10-12 02:11:36 +00:00
The --remote-path option was only honoured on the legacy (borg 1.x, ssh://) code path in legacy/remote.py. For borg2 rest:// repositories, the remote borg is determined by rest_serve_command(), which only ever looked at the BORG_REMOTE_PATH environment variable - so giving --remote-path silently had no effect and the far end failed with "command not found: borg". Rather than plumbing args into rest_serve_command(), drop the option completely and use BORG_REMOTE_PATH consistently for both repo types. Also apply replace_placeholders() to it for rest:// repos, as the legacy code path already did.