Crashfix Maintenance Cleanup

Jan 7, 2023 min read

For my work with Crashfix, I have a little VM, but after running for some time, the disk is full. And I need to fix that without flushing the database. For that, I use the commands below.

Check the disk size

$ df -h
...
/dev/nvme0n1p1   500G  404G   76G  85% /
...

Clean monitor log

cd /var/log/crashfix$
sudo du -hc --max-depth=0 .
sudo rm monitor.log
sudo du -hc --max-depth=0 .

Clean crash reports older than 120 days

cd /var/www/html/protected/data/crashReports/
sudo du -hc --max-depth=0 .
sudo find . -type f -ctime +120 -delete
sudo du -hc --max-depth=0 .

Check the disk size

$ df -h
...
/dev/nvme0n1p1   500G  404G   76G  85% /
...