borg icon indicating copy to clipboard operation
borg copied to clipboard

rcompress: do a repo-wide (re)compression

Open ThomasWaldmann opened this issue 3 years ago • 1 comments

just reads all chunks and recompresses them if they are not already using the desired compression type and level.

some improvements left to do:

  • if the usual DecidingCompressor (e.g. for zstd) we use chooses to return NONE or LZ4 compressed data (because that was shorter than the desired zstd), running the same rcompress command again, will try again to compress these chunks (with the same non-zstd result).

note: this can't be backported to borg 1.x because it uses some of the borg2-only features (like not having csize in archive metadata or elsewhere, like fetching the separate metadata only to check for the current compression type and level).

ThomasWaldmann avatar Sep 17 '22 22:09 ThomasWaldmann

Codecov Report

Merging #7037 (78b1301) into master (78b1301) will not change coverage. The diff coverage is n/a.

:exclamation: Current head 78b1301 differs from pull request most recent head aaf4d18. Consider uploading reports for the commit aaf4d18 to get more accurate results

@@           Coverage Diff           @@
##           master    #7037   +/-   ##
=======================================
  Coverage   83.36%   83.36%           
=======================================
  Files          66       66           
  Lines       11321    11321           
  Branches     2268     2268           
=======================================
  Hits         9438     9438           
  Misses       1347     1347           
  Partials      536      536           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov-commenter avatar Sep 17 '22 23:09 codecov-commenter