borgbackup/docs/deployment
Thomas Waldmann cac7237d3f remove ssh:// and socket:// remote repository for current repos
The modern client/server transport (RemoteRepository served by `borg serve`
over an msgpack RPC protocol) is now redundant for current (borg 2) repos:
its functionality is replaced by rest:// (which can tunnel over ssh to a
remote borgstore REST server).

Remove the modern RemoteRepository (both ssh:// and socket://) entirely.
Legacy v1 (borg 1.x) repos remain reachable over ssh:// via the separate
LegacyRemoteRepository client, and `borg serve` / RepositoryServer is kept,
trimmed to the legacy-only path, so a remote borg2 can still serve a v1 repo
for `borg transfer --from-borg1`.

Details:
- remote.py: delete RemoteRepository, SleepingBandwidthLimiter and the `api`
  decorator; trim RepositoryServer to legacy-only (drop modern _rpc_methods,
  socket serving, non-legacy open() branch); keep cache_if_remote /
  RepositoryCache / RepositoryNoCache (used by all repos).
- get_repository(): non-legacy ssh:// now raises a clear "use rest://" error;
  socket:// route and the global --socket option removed.
- parseformat: drop the socket:// scheme (now an invalid location).
- borg serve: keep the command (serves legacy v1 ssh only); update epilog.
- borg version: drop modern remote query; keep legacy ssh path.
- update isinstance/import sites (cache, archive, fuse/hlfuse, analyze/compact,
  archiver __init__ -> LegacyRemoteRepository.RPCError).
- tests/docs updated; obsolete socket serve test removed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 08:04:59 +02:00
..
automated-local.rst fixed typos and grammar (AI) 2025-09-23 14:56:23 +02:00
central-backup-server.rst remove ssh:// and socket:// remote repository for current repos 2026-06-08 08:04:59 +02:00
hosting-repositories.rst fixed typos and grammar (AI) 2025-09-23 14:56:23 +02:00
image-backup.rst fixed typos and grammar (AI) 2025-09-23 14:56:23 +02:00
non-root-user.rst fixed typos and grammar (AI) 2025-09-23 14:56:23 +02:00
pull-backup.rst Apply suggested fix to docs/deployment/pull-backup.rst from Copilot Autofix 2026-05-14 00:18:42 +02:00