You may simply copy or move "logrotate" from /etc/cron.daily in /etc/cron.hourly. 
Logrotate will then be executed hourly, have a look into /etc/logrotate.conf, 
/etc/logrotate.d and determine which files are due to be rotated. But as you cannot 
set other delays but "daily","weekly","monthly" (see man logrotate), I suggest some 
tricking: add "size 10k" in the /etc/logrotate.d/-file you created, so that logrotate 
will find it due every day or when its size grew bigger than 10k (i.e. very soon, more 
often than daily...).

For testing purposes, you may also just call /etc/cron.daily/logrotate by hand from 
the commandline.


Felix



-----Ursprüngliche Nachricht-----
Von: Alexander Shaw [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 20. Februar 2002 01:15
An: MySQL List; Felix Richter
Betreff: RE: **Backing Up A Database**


Hi Felix (or anyone),

I'm giving this a go but as a Linux newbie running Red hat 7.2 I have a
question to ask ....

Do I need to alter anything in Cron for it to run the logrotate script?

What would I need to put into the hourly cron folder to make things happen
more often to check they are working correctly?

Alex


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to