LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-11-2005, 07:21 PM   #1
phats_O
Member
 
Registered: Apr 2005
Distribution: debian
Posts: 38

Rep: Reputation: 15
gzipped log backups: clean up


Is there a command that will help me clean up the gzipped backup files that are building up on my harddrive? I would rather not have to clean them out one-by-one.

phats_O
debian 2.6.10-adeos
 
Old 05-12-2005, 12:04 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: gzipped log backups: clean up

Quote:
Originally posted by phats_O
Is there a command that will help me clean up the gzipped backup files that are building up on my harddrive? I would rather not have to clean them out one-by-one.

phats_O
debian 2.6.10-adeos
I take it you are talking about logs? If so it should be done automatically by logrotate but if you turn your computer off or boot to another OS during the time cron should run then it will not happen. If this is your problem then install anacron which will then start checking shortly after boot and do the necessary steps needed to keep everything running properly.
 
Old 05-12-2005, 10:38 AM   #3
phats_O
Member
 
Registered: Apr 2005
Distribution: debian
Posts: 38

Original Poster
Rep: Reputation: 15
quote:
I take it you are talking about logs?
:endquote
Was it the subject line "gzipped log backups: clean up" that gave you the impression I was talking about logs?
Another brainfart on my part, I forgot to say log in the body of the post. FTR...yes,yes,yes, I mean log files.

My computer stays on for weeks at a time, and I don't run anything but Debian linux on it. Is there some setting that can set how frequently CRON performs this cleanup? Can I manually force cron to perform a cleanup? All I know is that every time I visit /var/log/ there are more and more gzipped backups of my log files.
 
Old 05-13-2005, 10:59 AM   #4
phats_O
Member
 
Registered: Apr 2005
Distribution: debian
Posts: 38

Original Poster
Rep: Reputation: 15
WOW, the respose to my question has been unbelievably UNDERWHELMING!!
Hello!?!?!?
Does anyone have any solutions that actually have something to do with my setup? 'Man cron' doesn't help me out... I really don't know how to get cron to do this job. Is there anyone here who can help me???
 
Old 05-14-2005, 12:39 AM   #5
phats_O
Member
 
Registered: Apr 2005
Distribution: debian
Posts: 38

Original Poster
Rep: Reputation: 15
sorry everyone...I was a little cranky when I wrote that last post.
In the event that anyone else is looking for how to do this, I did
/usr/sbin/logrotate /etc/logrotate.conf
and that did the trick.
 
  


Reply



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
How to clean up /var/log/messages ? JaBa Linux - General 10 10-30-2004 12:32 AM
backups AZDAVE Linux - General 1 11-06-2003 12:05 PM
How i can Clean up the log file of proxy? AZIMBD03 Red Hat 4 10-10-2003 08:27 AM
How do I direct Gzipped files from a floppy to a folder? duncan36 Linux - Newbie 3 02-11-2002 09:32 PM
backups storkiam Linux - Newbie 0 12-07-2001 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration