]> git.proxmox.com Git - proxmox-backup.git/commit
tools: add logrotate module
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 28 Sep 2020 13:32:04 +0000 (15:32 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 29 Sep 2020 06:33:21 +0000 (08:33 +0200)
commit8074d2b0c3cc3e66a04b4b607601ad3243cbab21
treec0656d45e5c94e1542159568abac9e2a34ce6bbd
parentb02d49ab265c3c79b80fba04578c82faa7d59cda
tools: add logrotate module

this is a helper to rotate and iterate over log files
there is an iterator for open filehandles as well as
only the filename

also it has the possibilty to rotate them
for compression, zstd is used

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/tools.rs
src/tools/logrotate.rs [new file with mode: 0644]