crontab possible?
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
crontab possible?
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?
Re: crontab possible?
Yes
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