Cron jobs interval question

Status
Not open for further replies.

Mac

Active Member
1,837
2009
45
0
Hello, Im a bit confused about setting the interval for cron jobs.

I want it to backup my files every week (4 times a month). I know the command, but I dunno how to set the interval...

Should it be 0 0 * * 1 (Minute, Hour, Day, Month, Weekday) or what?

Thank you.
 
5 comments
Just set the day of the week and the hour of which you wish to start.
The minute settings shouldn't apply to you.
So obviously if you're running it four times a month it will start on the specific day and hour you set per week.
Leave the day of the month setting to " * " as it won't apply to you (being as you're setting the cron to run four times per month)


Pikeypete
 
I think you're confusing the row of minutes section.
Set the 'Day of the Week" part to Sunday and then set the "Hour" part to 2 (as it uses the 24 hour clock).
Do NOT touch the row of minutes
.
Put your title in, select your product and voila.


Pikeypete
 
Im in advanced mode... But nevermind, I found it out myself, and I was right. In advanced mode, you need to set it to 0 2 * * 1 for running the command every Sunday at 2:00 am...
 
Status
Not open for further replies.
Back
Top