crontab possible?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

crontab possible?

Post by alex.barylski »

I have a backup that is a required hourly, however, it does not need to be done after the hours of 5PM until 6AM when everyone starts to get here. Is there a way to do this is CRON or should I just have a conditional check inside my bash script to not bother dumping mysql between those hours?
User avatar
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: crontab possible?

Post by VladSun »

man crontab wrote: Ranges of numbers are allowed. Ranges are two numbers separated with a
hyphen. The specified range is inclusive. For example, 8-11 for an
``hours'' entry specifies execution at hours 8, 9, 10 and 11.

Lists are allowed. A list is a set of numbers (or ranges) separated by
commas. Examples: "1,2,5,9", "0-4,8-12"
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply