Browse Source

transfer: fix for non-unique archive names

For Archive(), always use the archive id, not the archive name!
Thomas Waldmann 9 tháng trước cách đây
mục cha
commit
f5b3ab66e9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
                 )