Tools › Cron examples › every 30 minutes

Cron expression for every 30 minutes

The cron expression for every 30 minutes is:

*/30 * * * *

What it does

Runs twice an hour, at :00 and :30. Equivalent to 0,30 * * * *.

Field by field

FieldValueMeaning
Minute*/30step */30
Hour*every value
Day of month*every value
Month*every value
Day of week*every value

Typical uses

Syncing external calendars, rotating temporary tokens, or half-hourly reports.

Watch out for

Both forms (*/30 and 0,30) behave identically; pick the one that is clearer to your team.

Add it to your crontab

crontab -e, then add:

*/30 * * * * /path/to/command >> /var/log/myjob.log 2>&1

Related schedules

every minuteevery 5 minutesevery 10 minutesevery 15 minutesevery hourevery 2 hoursevery day at midnightevery day at 3amevery weekday at 9amevery 15 minutes during business hoursevery Mondayevery Sunday at midnighton weekendson the first day of every monthon the last day of the monthevery quartertwice a day
Copied to clipboard