Start free · Free tools · Fair usage limits
Browse Tools

Categories

Custom AI Solutions – AI2Flows
LIVE NEWS
Loading latest AI & SEO news…
Home›Tools›Crontab Builder›Cron expression for every 6 months
Cron expression

Cron expression for every 6 months

Cron expression for every 6 months: 0 0 1 1,7 *. At 00:00 (12:00 AM) on the 1st of the month in January and July. Next run times, field-by-field meaning and

Quick answer

To run a cron job every 6 months, use the cron expression 0 0 1 1,7 *. At 00:00 (12:00 AM) on the 1st of the month in January and July. Add it to your crontab as "0 0 1 1,7 * /path/to/command". Cron uses the scheduler’s time zone, which is usually UTC on servers and in GitHub Actions.

Last updated · Maintained by FreeAIToolz · How we test

At 00:00 (12:00 AM) on the 1st of the month in January and July

Open in the full Crontab Builder →

What does 0 0 1 1,7 * mean?

At 00:00 (12:00 AM) on the 1st of the month in January and July.

FieldValueAllowedMeaning
Minute00–590
Hour00–230
Day of month11–311
Month1,71–12January, July
Day of week*0–6 (0 = Sunday)every day of week

Example run times

If the current time were Monday 4 January 2027, 08:58 UTC, 0 0 1 1,7 * would next run at:

  1. Thu 1 Jul 2027, 00:00 UTC
  2. Sat 1 Jan 2028, 00:00 UTC
  3. Sat 1 Jul 2028, 00:00 UTC
  4. Mon 1 Jan 2029, 00:00 UTC
  5. Sun 1 Jul 2029, 00:00 UTC
  6. Tue 1 Jan 2030, 00:00 UTC

When to use a cron job every 6 months

Half-yearly reviews, archiving and certificate or password rotation.

How to use this schedule in your scheduler

Linux crontab

Run crontab -e and add:

0 0 1 1,7 * /path/to/command >> /var/log/job.log 2>&1

GitHub Actions

on:
  schedule:
    - cron: '0 0 1 1,7 *'   # UTC

Kubernetes CronJob

apiVersion: batch/v1
kind: CronJob
metadata:
  name: my-job
spec:
  schedule: "0 0 1 1,7 *"
  timeZone: "Etc/UTC"
  concurrencyPolicy: Forbid
  jobTemplate:
    spec:
      template:
        spec:
          restartPolicy: OnFailure
          containers:
            - name: job
              image: busybox
              command: ["sh", "-c", "echo run"]

AWS EventBridge Scheduler

EventBridge uses six fields (with a year) and needs ? in either day-of-month or day-of-week:

cron(0 0 1 1,7 ? *)

Spring @Scheduled (seconds first)

@Scheduled(cron = "0 0 0 1 1,7 *", zone = "UTC")

Node.js (node-cron)

cron.schedule('0 0 1 1,7 *', () => { /* job */ }, { timezone: 'UTC' });

Vercel Cron Jobs (vercel.json)

{ "crons": [{ "path": "/api/cron", "schedule": "0 0 1 1,7 *" }] }

Vercel cron jobs run in UTC, and how often they can run depends on your plan.

More cron schedules

Frequently asked questions

What is the cron expression for every 6 months?
Use 0 0 1 1,7 *. At 00:00 (12:00 AM) on the 1st of the month in January and July.
Which time zone does this cron schedule use?
Cron runs in the time zone of the system or service that executes it. Linux servers and cloud schedulers (GitHub Actions, Vercel, AWS EventBridge by default) normally use UTC. Many crontabs accept CRON_TZ=Area/City at the top, and Kubernetes CronJobs have a timeZone field.
What happens if the server is off at the scheduled time?
Plain cron does not catch up on missed runs. If the machine was off, that run is skipped. Use anacron, or a systemd timer with Persistent=true, if missed jobs must run after boot.
How do I test this schedule before deploying?
Paste the expression into the live checker on this page to see the next 10 run times in UTC and your local time. On Linux, check the system log (grep CRON /var/log/syslog) after the first expected run.