Is it safe to remove these files?

SYSTEM INFORMATION
OS type and version Ubuntu 22.04
Webmin version 2.202

in the directory

/var/webmin/diffs

I have over 1GB of files on one server & 600mb on another, looking at the contents of these files it appears to be recording exec commands the webmin/virtualmin makes (scheduled backups etc). Can I safely delete these files to reclaim the disk space ?

1 Like

Yeah, those are for tracking changes. If you don’t care about the past, you can delete them.

You can also make Webmin automatically delete them more aggressively in:

Webmin->Webmin Configuration->Logging->Periodically clear log files?

2 Likes

Thanks! - that saved a ton of space that I couldn’t understand had been gradually vanishing for years

That works for the log files but the diffs directory has not shrunk, in fact it has increased in size, time to manually delete it

find /var/webmin/diffs/* -type d -ctime +10 -exec rm -rf {} \;

does the trick if anyone needs it

1 Like

This has got me digging around for other files that are consuming space.

I have found another set the proftpd.log which is happily being log rotated, but the sftp.log which is over 15GiB and doesn’t seem to be rotated

webmin->system->log file rotation add new file should allow you to add sftp.log to the rotation schedule

try looking in

/var/webmin/locks

that is full of symlinks to files that no longer exist, one of my servers has 9.8 mb of symlinks considering that a symlink consumes <100 b thats an awful lot of dead symlinks, most of which seem to be linked to the real time monitoring function

Interesting. Mine is empty. Should I be worried? *asking for a friend*

I’m guessing, if you don’t use system monitors you won’t get anything in the directory