all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup 0/2] let users control the amount of task logs saved
@ 2022-03-25 11:43 Dominik Csapak
  2022-03-25 11:43 ` [pbs-devel] [PATCH proxmox-backup 1/2] config/node: add 'task_log_max_days' config Dominik Csapak
  2022-03-25 11:43 ` [pbs-devel] [PATCH proxmox-backup 2/2] rest-server: add option to rotate task logs by 'max_days' instead of 'max_files' Dominik Csapak
  0 siblings, 2 replies; 4+ messages in thread
From: Dominik Csapak @ 2022-03-25 11:43 UTC (permalink / raw)
  To: pbs-devel

by providing a 'task-log-max-days' property which controls how many
days (approximately) we save.

simpler way would be to configure the amount of archive files, but
that does not really translate into a nice user setting (that concept
is not really visible to users)

alternatively we could change the logrotation that it rotates by
date/time instead of size/filecount.

there is no gui yet, but should not be hard to do and one can do
 proxmox-backup-manager node update --task-log-max-days 365

Dominik Csapak (2):
  config/node: add 'task_log_max_days' config
  rest-server: add option to rotate task logs by 'max_days' instead of
    'max_files'

 proxmox-rest-server/src/worker_task.rs | 49 +++++++++++++++++++++++---
 src/api2/node/config.rs                |  4 +++
 src/bin/proxmox-backup-proxy.rs        |  6 ++++
 src/config/node.rs                     |  4 +++
 4 files changed, 59 insertions(+), 4 deletions(-)

-- 
2.30.2





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-28  4:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25 11:43 [pbs-devel] [PATCH proxmox-backup 0/2] let users control the amount of task logs saved Dominik Csapak
2022-03-25 11:43 ` [pbs-devel] [PATCH proxmox-backup 1/2] config/node: add 'task_log_max_days' config Dominik Csapak
2022-03-25 11:43 ` [pbs-devel] [PATCH proxmox-backup 2/2] rest-server: add option to rotate task logs by 'max_days' instead of 'max_files' Dominik Csapak
2022-03-28  4:44   ` Dietmar Maurer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal