I have a question about compression.
I have a repository compressed with S2, fast and performant.
But I need to make more space and I would like to set up pgzip compression.
What happens if I do it? I don’t want to cause problems.
Are the previous files converted to pgzip or only the new files that will be backed up?
Will I end up with a half S2 and half PGZIP repository or will everything be standardized with the new compression algorithm?
Thank you
dimejo
November 9, 2023, 8:04am
2
Old blobs are not automatically converted to the new compression algorithm. Only new blobs will be using the new algorithm. kopia content stats
shows how much data is saved uncompressed or compressed with a certain algorithm.
This post explains how to recompress your data (with a new repository):
I got around to trying kopia snapshot migrate and I can confirm it can be used for this purpose – the migrated snapshots indeed honor policy settings of the target repository, including compression settings.
To summarize, a repository can be recompressed including existing snapshots in the following way:
Create a repository config file for the existing repository, e.g. by making a copy of <kopia-config-dir>/repository.config
Create a new repository using kopia repository create
Set the comp…
Thank you for support Alex! @dimejo