meditatingsurgeon
Try running this to check whatβs using up space:
du --max-depth=3 --exclude=/var/lib/docker/overlay2 --exclude=/var/local/enhance/containers --exclude=/proc --exclude=/sys -h /
You can also run this to find the largest directories within Enhance:
du --max-depth=2 --exclude=/var/local/enhance/containers /var/local/enhance -h
To locate accounts with the largest size, use:
du -sh /var/www/* | sort -rh
For managing logs, Iβd recommend setting up these two commands in a daily cron job:
# Truncate WordPress error logs over 5MB for users on the server:
/usr/bin/find /var/www \( -name "*.log" -o -name "*_log" \) -size +5M -exec /usr/bin/truncate -s -5M {} \;
# Truncate server logs over 100MB:
/usr/bin/find /var/log \( -name "*.log" -o -name "*_log" \) -size +100M -exec sudo truncate -s 0 {} \;
Some logs can get huge very quickly, so this can help keep things manageable.