From f5b3ab66e926ab7c837a0b249269b154c616b27b Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 19 Sep 2024 00:40:45 +0200 Subject: [PATCH] transfer: fix for non-unique archive names For Archive(), always use the archive id, not the archive name! --- src/borg/archiver/transfer_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/archiver/transfer_cmd.py b/src/borg/archiver/transfer_cmd.py index 575bda3c2..73a9ad79a 100644 --- a/src/borg/archiver/transfer_cmd.py +++ b/src/borg/archiver/transfer_cmd.py @@ -97,7 +97,7 @@ class TransferMixIn: else: if not dry_run: print(f"{name} {ts_str} {id_hex}: copying archive to destination repo...") - other_archive = Archive(other_manifest, name) + other_archive = Archive(other_manifest, id) archive = ( Archive(manifest, name, cache=cache, create=True, progress=args.progress) if not dry_run else None )