1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-10 22:24:13 +00:00

transfer: fix for non-unique archive names

For Archive(), always use the archive id, not the archive name!
This commit is contained in:
Thomas Waldmann 2024-09-19 00:40:45 +02:00
parent 4bce862d95
commit f5b3ab66e9
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -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
)