mirror of https://github.com/borgbackup/borg.git
Merge pull request #1539 from enkore/f/recreate-cp
recreate: fix crash if archive doesn't have chunker_params
This commit is contained in:
commit
e60ed80433
|
@ -1572,7 +1572,7 @@ class ArchiveRecreater:
|
||||||
if not target:
|
if not target:
|
||||||
target = self.create_target_archive(target_name)
|
target = self.create_target_archive(target_name)
|
||||||
# If the archives use the same chunker params, then don't rechunkify
|
# If the archives use the same chunker params, then don't rechunkify
|
||||||
target.recreate_rechunkify = tuple(archive.metadata.get('chunker_params')) != self.chunker_params
|
target.recreate_rechunkify = tuple(archive.metadata.get('chunker_params', [])) != self.chunker_params
|
||||||
return target, resume_from
|
return target, resume_from
|
||||||
|
|
||||||
def try_resume(self, archive, target_name):
|
def try_resume(self, archive, target_name):
|
||||||
|
|
Loading…
Reference in New Issue