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:
Hi, has there been any progress on this?

I'm thinking of manually automatic this, but sounds like a bit hacky to me.

Does anyone know if setting PBS_LOG=error will also limit tasks view in the webui output to error, or only what is actually written to disk long-term?
 
I'm still having a problem. I'm backing up a CephFS with millions of files using the Proxmox Backup Client. I've already tried the --task-log-max-days option, as well as PBS_LOG="error" (on both the server and the client). Nevertheless, my /var/log/proxmox-backup/tasks directory is filling up with huge log files containing
Code:
2026-07-11T18:11:40+02:00: successfully added chunk bccaf2a4984e52c682ae5e83399d55bd42a43341e55feacf23a173084b80360b to dynamic index 1 (offset 67542946, size 1089081)
2026-07-11T18:11:40+02:00: successfully added chunk a9b70d94e774ff10c88ff4997bc8b6b169cf6b1ab5b065c3633432532b97ab84 to dynamic index 1 (offset 68632027, size 1089326)
2026-07-11T18:11:40+02:00: successfully added chunk dcbe5645b50ff83c6c2b069cd01bf75a38f538b130656ef2ba0817feee9bd6dd to dynamic index 1 (offset 69721353, size 1089080)
2026-07-11T18:11:40+02:00: successfully added chunk e8049787e58d0303d0112f985be67c31404a0e5e396c4cb6019fc6f0b51e05ce to dynamic index 1 (offset 70810433, size 1089078)
2026-07-11T18:11:40+02:00: successfully added chunk 0075ad378f26a139a88f0e65e63145f43ba8d955b734b526780ce65c02eb3eb3 to dynamic index 1 (offset 71899511, size 1089065)
2026-07-11T18:11:40+02:00: successfully added chunk f3d0145a91a48289ccb84eeb8f47447d6e1e50c77d196b7a83c0d2939aee2441 to dynamic index 1 (offset 72988576, size 1089076)
2026-07-11T18:11:40+02:00: successfully added chunk ea3960bfaefefc3501030a7f32b1654bb4b096ded09990f1d896fc1d49996c8a to dynamic index 1 (offset 74077652, size 1089078)
2026-07-11T18:11:40+02:00: successfully added chunk 4f569880962e64bb6ada7ebafaa096647ed8acc812c26b67ffdc119947ee8388 to dynamic index 1 (offset 75166730, size 1089316)
2026-07-11T18:11:40+02:00: successfully added chunk 781cbaf8c43aaca6dd5d7074e796486b976c70d37c6f71d56971e63f28bc69c1 to dynamic index 1 (offset 76256046, size 1089084)
2026-07-11T18:11:40+02:00: successfully added chunk 9157938ef7ec1adf26c5481ad56cd1f361585f2fccbd3a3dd8f85de9f1a88c68 to dynamic index 1 (offset 77345130, size 1089079)
2026-07-11T18:11:40+02:00: successfully added chunk 9d26fe9e2b0c73c7cd1e38fae0ad3bf43acfbfe0c14e42ce547f981f7a560bc8 to dynamic index 1 (offset 78434209, size 1089080)
2026-07-11T18:11:40+02:00: upload_chunk done: 1089075 bytes, c02f777d0c84d2478a71c6cdfe5e9ee887e1e5040c8c213c4cb283c00cd9d085
2026-07-11T18:11:40+02:00: POST /dynamic_chunk
2026-07-11T18:11:40+02:00: upload_chunk done: 1089072 bytes, a6d3b01fbc5d0b2bba1f5fefa2e9065d3d9f0929d76ff25f176080ccf0fbae7c
2026-07-11T18:11:40+02:00: upload_chunk done: 1089071 bytes, 670d284eb44d703ac0b258355ae1422e1f7e103ada95781df542cdead68d2e60
2026-07-11T18:11:40+02:00: upload_chunk done: 1089085 bytes, b96f2c009223886cba42c87a572f6ea6ea80be821e9e545aacccf97b6c7d9abb
2026-07-11T18:11:40+02:00: upload_chunk done: 1089308 bytes, 9c912cddb45053917017f1b37728684da8bec208e4ff7d5e045a605f20d99eed
2026-07-11T18:11:40+02:00: upload_chunk done: 1089184 bytes, 1e77103519e7e54b968c318913f6b99c0ec885e95b5947e7cae470b5e9839101
2026-07-11T18:11:40+02:00: upload_chunk done: 1089081 bytes, 96b0e28ad8d02a0ea856e23d009d1aba72f3ee79451ae012b8e36cc87a10e867
2026-07-11T18:11:40+02:00: upload_chunk done: 1089073 bytes, af02cb82a90df109b80772d0ae242130b4165e8be5f1e5f31339a46fa7c578cb
and similar entries. How can I finally stop this?
 
It works after all - maybe I just made the change to the wrong service. Setting PBS_LOG="warn" drastically reduces the amount of log output and must be done using systemctl edit proxmox-backup-proxy.service.