Disk usage under /var/log/proxmox-backup

Hi!,
PBS_LOG should work also work.
 
Can someone please tell me how to delete the old logs?

I've tried with the suggestion mentioned here previously, but I'm getting a "Directory not empty" error.
Also, this command won't clean out the logs in the /api folder, since there are just 2 files there, that it keeps appending to continously.

root@proxmox:/var/log# find /var/log/proxmox-backup -mtime +10 -delete
find: cannot delete ‘/var/log/proxmox-backup’: Directory not empty

root@proxmox:/var/log# du -sh /var/log/proxmox-backup/*
52M /var/log/proxmox-backup/api
34M /var/log/proxmox-backup/tasks

root@proxmox:/var/log/proxmox-backup# du -sh api/*
29M api/access.log
23M api/auth.log

Is it safe to just empty both of those folders manually, when no jobs are currently running?

Currently I've just set logrotate on those, although that is not really the best solution. I wanted to spare my SSD from excessive writes of logs, and this won't really help.
 
Last edited: