Web Hosting Talk







View Full Version : Need help and advice regarding files in tmp folder


vn411
04-30-2003, 09:33 PM
I just checked the directory /tmp/analog and saw some really big files. A cache file and 6 other html files take up more than 200mb of web storage. Is it ok for me to delete all these stats files in this directory?
Thank you for your help.

superiorhost
05-01-2003, 12:11 AM
Hi,
If you are on a server with cpanel, you would loose your stats history if you delete these files.

The best bet is to ask your hosts techs to do the job for you so that your stats will not stop after the files are removed.

Tim L

hololi
05-01-2003, 04:07 AM
my $0.02

I don't know if you are using cpanel or this is just raw linux you are administering.

I recommend that you back them up
(gzip) and store them somewhere else for retrevial at a later date if necessary.


I am surprised that the html files are so big (are you sure its not the xfer logs from the webserver that analog works on that is taking up the space?

if they are web xfer logs, they are simply ascii text they should compress quite well.

the cache file is this a dns cache ? If so this can always be recreated from the raw xfer logs.

If you are not sure do an ls -l and repost the output here


regards...
hololi

vn411
05-01-2003, 01:19 PM
I'm using cpanel. Those are the stats files that I can view from the cpanel. I never viewed my stats history until yesterday when my site used all of the 20gb monthly bandwidth allowance.
The tech support of my host is usually available on AIM. Last night I didn't see him online, so I came here to ask for help.
Thank you very much to Tim and Hololi for your help. I just want to clean this directory to save web space. I guess it's time for me to submit a support ticket or get another web account for the forum to reduce the space and bandwidth.

hololi
05-01-2003, 02:00 PM
does you web host allow you to have cron jobs ?

if I was you I'd find a method of doing the following every night ...

download the transfer logs to your own machine
flush the logs

(in that order)

if you cant download everynight I'd ...

copy transfer log to another location and compress
flush the logs

this way you only have 1 day's logs using up space at any one time on your web host machine

if you want I can give you a script that copies compresses and flushes log files. (command line driven through cron not cpanel stuff)

once off line on a different machine you can run your own stats program on the transfer logs 9I recommend analog ...its fast and free)

good luck ..
hololi