Files
borg/docs
Thomas WaldmannandClaude Opus 5.5 d1c77716c2 legacy client: work with a borg 1.x "borg serve"
--from-borg1 via ssh:// (e.g. borg transfer from a borg 1.x repository)
failed with a borg 1.x "borg serve" on the remote host:

- the client called info() after open, which borg 1.x servers do not
  have ("Borg server is too old for info"),
- then close() sent the close RPC, which borg 1.x servers do not have
  either ("RPC method close is not valid"), masking the first error,
- get_manifest is also missing on borg 1.x servers,
- borg 1.x servers pack bytes into the msgpack "raw" type, which the
  client unpacks to str, so e.g. the repository id and object data
  arrived as str.

For borg 1.x servers, the client now uses repository version 1 (the only
version borg 1.x serves), does not send the close RPC (borg 1.x closes
the repository when stdin gets closed), gets the manifest object via get
and converts the bytes results back to bytes.

Tested with a real borg 1.4.5 "borg serve": repo-list, version,
repo-create --other-repo and transfer with --from-borg1, repokey and
keyfile mode. The testsuite emulates a borg 1.x server.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-24 17:12:53 +02:00
..
2025-09-23 14:56:23 +02:00
2026-09-02 21:39:09 +02:00
2026-09-24 15:55:01 +02:00
2026-09-24 15:55:01 +02:00
2016-11-04 21:14:59 -04:00
2025-09-23 14:56:23 +02:00
2025-09-23 14:56:23 +02:00
2026-09-24 15:55:01 +02:00
2025-09-23 14:56:23 +02:00
2025-09-23 14:56:23 +02:00
2025-09-23 14:56:23 +02:00