|
I have tried searching and can't find anything that is on this topic. My provider deletes all logs after one day to conserve space. Here is what I am trying to do:
Make a shell or PHP script that will:
1) Copy a file from one directory to another. It is a log file, so a shell script would work better.
2) Rename the file to include todays date. This is essential because I need to no overwrite it the next day.
3) gzip the file to save space.
I want to save stats for atleast a week so I can go on vacation and still access the raw logs.
Chuck
Any help would be appreciated. If you can just point me to the right reference, that would even help.
|