[pbs-devel] applied: [PATCH proxmox-backup 1/2] tools/logrotate: fix compression logic

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Oct 28 18:51:21 CET 2020


On 28.10.20 10:58, Dominik Csapak wrote:
> we never actually compressed any files, since we only looked at
> the extension:
> * if it was 'zst' (which was always true for newly rotated files), we
>   would not compress it
> * even if it was not 'zst', we compressed it inplace, never adding '.zst'
>   (possibly compressing them multiple times as zstd)
> 
> now we add new rotated files simply as '.X' and add a 'target' to the
> compress fn, where we rename it to (but now we have to unlink the source
> path)
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  src/tools/logrotate.rs | 37 +++++++++++++++++++------------------
>  1 file changed, 19 insertions(+), 18 deletions(-)
> 
>

applied, thanks!





More information about the pbs-devel mailing list