Time for some backups

Rodolfo J. Paiz rpaiz at simpaticus.com
Sun Mar 14 00:55:43 UTC 2004


At 20:01 3/12/2004, you wrote:
>On Sat, 2004-03-13 at 01:28, Ed Wilts wrote:
>
> >   Here's my crontab entries:
> >
> > 50 10,12,14,16,18,20 * * *    root rsnapshot -q hourly

In this case, you are aware it could be written more simply, yes?

50 10-20/2 * * * root rsnapshot -q hourly

Merely mention the range (10-20) and show that you want it every two hours 
(/2). You could even add in an entirely different time like 1am like this:

50 1,10-20/2 * * * root rsnapshot -q hourly

It's simply amazing how flexible cron's time descriptors are.


-- 
Rodolfo J. Paiz
rpaiz at simpaticus.com
http://www.simpaticus.com





More information about the redhat-list mailing list