LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-16-2004, 02:57 PM   #1
sdebiasio
LQ Newbie
 
Registered: Jul 2004
Posts: 22

Rep: Reputation: 15
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!
 
Old 08-16-2004, 03:04 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
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
 
Old 08-16-2004, 03:22 PM   #3
sdebiasio
LQ Newbie
 
Registered: Jul 2004
Posts: 22

Original Poster
Rep: Reputation: 15
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.
 
Old 08-16-2004, 03:31 PM   #4
jazzben
Member
 
Registered: Aug 2004
Location: Brum, UK
Distribution: Mandrake 9.2
Posts: 66

Rep: Reputation: 15
hehehe...... large log




sorry - couldn't help myself
 
Old 08-16-2004, 04:05 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,983
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Quote:
Originally posted by jazzben
sorry - couldn't help myself
Could you please take that kind of humour to
the pub?
 
Old 08-16-2004, 04:54 PM   #6
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi
#man logrotate
#man logrotate.conf
will hep u out with some examples

regards
gaurav
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using (s)tar for back-up to hard disk creating very large files jlinkels Linux - Software 3 10-25-2005 08:55 PM
Cant log out of window manager and log back into kde randrake Linux - General 4 08-11-2005 11:01 AM
I need a a gprs modem to send log files back from a remote location any info paulb2244 Linux - Hardware 1 06-19-2004 02:57 PM
For those who use windows, how large is your error fault log? natalinasmpf General 15 01-09-2004 02:26 AM
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 10:55 PM


All times are GMT -5. The time now is 08:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration