Explorar o código

transfer: fix for non-unique archive names

For Archive(), always use the archive id, not the archive name!
Thomas Waldmann hai 9 meses
pai
achega
f5b3ab66e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
                 )