LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Best way to back up LARGE log files? (https://www.linuxquestions.org/questions/linux-newbie-8/best-way-to-back-up-large-log-files-218406/)

sdebiasio 08-16-2004 02:57 PM

Best way to back up LARGE log files?
 
Hi there,

What is the best way to automate log file backup, before the access_log file becomes too large?

For one client in particular, I need to zip up a very LARGE log file and then reset the access_log file to start fresh.

Is there a way to do this through the command line? Or do I need to zip up the large file and then upload an empty access_log raw file?

Sorry if this is a dumb question - I'm still learning!

Thanks!

Tinkster 08-16-2004 03:04 PM

The smartest way would be to configure apache to use
the syslog facility and then have log-rotate take care of
the compressing/backing up.


Cheers,
Tink

sdebiasio 08-16-2004 03:22 PM

Thanks!

Could you recommend a good how-to article on this? I want to make sure I use the proper syntax. I looked at some web articles on Syslog and found them pretty non-intuitive.

jazzben 08-16-2004 03:31 PM

hehehe...... large log




sorry - couldn't help myself

Tinkster 08-16-2004 04:05 PM

Quote:

Originally posted by jazzben
sorry - couldn't help myself
Could you please take that kind of humour to
the pub?

masand 08-16-2004 04:54 PM

hi
#man logrotate
#man logrotate.conf
will hep u out with some examples

regards
gaurav


All times are GMT -5. The time now is 11:12 PM.