mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-01 04:37:34 +00:00
get rid of chunks_healthy when rechunking, fixes #3218
(cherry picked from commit 7211bb2211
)
This commit is contained in:
parent
734fee94ad
commit
fe74b54890
2 changed files with 15 additions and 0 deletions
|
@ -917,6 +917,10 @@ def chunk_processor(data):
|
|||
return chunk_entry
|
||||
|
||||
item.chunks = []
|
||||
# if we rechunkify, we'll get a fundamentally different chunks list, thus we need
|
||||
# to get rid of .chunks_healthy, as it might not correspond to .chunks any more.
|
||||
if getattr(self, 'recreate_rechunkify', False) and 'chunks_healthy' in item:
|
||||
del item.chunks_healthy
|
||||
from_chunk = 0
|
||||
part_number = 1
|
||||
for data in chunk_iter:
|
||||
|
|
|
@ -3563,6 +3563,17 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True):
|
|||
deduplicated size of the archives using the previous chunker params.
|
||||
When recompressing expect approx. (throughput / checkpoint-interval) in space usage,
|
||||
assuming all chunks are recompressed.
|
||||
|
||||
If you recently ran borg check --repair and it had to fix lost chunks with all-zero
|
||||
replacement chunks, please first run another backup for the same data and re-run
|
||||
borg check --repair afterwards to heal any archives that had lost chunks which are
|
||||
still generated from the input data.
|
||||
|
||||
Important: running borg recreate to re-chunk will remove the chunks_healthy
|
||||
metadata of all items with replacement chunks, so healing will not be possible
|
||||
any more after re-chunking (it is also unlikely it would ever work: due to the
|
||||
change of chunking parameters, the missing chunk likely will never be seen again
|
||||
even if you still have the data that produced it).
|
||||
""")
|
||||
subparser = subparsers.add_parser('recreate', parents=[common_parser], add_help=False,
|
||||
description=self.do_recreate.__doc__,
|
||||
|
|
Loading…
Reference in a new issue