4 ms·
> Before compiling, I use tar to make a short term backup of how things were before the compile and install. So most of his tar files are mostly the same, havi
by djha-skin 4y ago
> Before compiling, I use tar to make a short term backup of how things were before the compile and install.
So most of his tar files are mostly the same, having many of the same files in the same order, and 512-block aligned to boot. Due to this block aligning property of tar files, they are well suited to block level desuplication file systems, provided most of their contents are similar to other tar files. I have blogged about using this idea in the context of ci/cd[1], but the idea works just as well with backups. Sharing compression between tar files instead of compressing each tar file might be better anyway.
1: https://blog.djha.skin/blog/cicd-package-compression-could-be-so-much-better/ https://blog.djha.skin/blog/cicd-package-compression-could-b...