Web Hosting Talk







View Full Version : /var


anto
05-23-2001, 10:39 AM
Hi,

My /var partition is at 81%. And I would like
to clear some files out.

Is it safe if I just delete them? Especially
at /var/log ?

How about in other subdirectories?

I never done this before and I don't want to mess
around my first server.

Your help is greatly appreciated.

Anto.
[I'm using cpanel and whm]

cirrusrex
05-23-2001, 11:29 AM
What you probably want to do is setup some sort of log rotator for whichever logs get rather large. Maybe once a week or perhaps once a day (depending on how busy the server is) have those logs tarred and gziped up and then touch some new log files. Keep those log file tarballs for a month (or whatever you deam necessary) then delete them.. This is of course if you are sure the log files are taking up the space.. It could be people's mail files. A 4000 message mailfile could be pretty big :)