]> git.proxmox.com Git - proxmox-backup.git/commit
rest-server: add cleanup_old_tasks
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 7 Oct 2021 12:03:36 +0000 (14:03 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 8 Oct 2021 04:38:52 +0000 (06:38 +0200)
commitde55fff226e41a97391127043bdae060d5aaf003
tree7a879bd21e7edd839ad7022594f275b2fbe3db37
parentb3a67f1f1446eba012b1b45d14bde9c1c65e294d
rest-server: add cleanup_old_tasks

this is a helper that removes task log files that are not referenced
by the task archive anymore

it gets the oldest task archive file, gets the first endtime (the
oldest) and removes all files in the taskdir where the mtime is older
than that

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
proxmox-rest-server/src/worker_task.rs