浏览代码

transfer: fix for non-unique archive names

For Archive(), always use the archive id, not the archive name!
Thomas Waldmann 8 月之前
父节点
当前提交
f5b3ab66e9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/borg/archiver/transfer_cmd.py

+ 1 - 1
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
                 )