When to use it
Midnight is the default for nightly backups, invoices and cleanup. It's also the job most likely to fail silently: nobody is awake to notice, and you find out the day you need the backup.
Cron · Every day at midnight
0 0 * * *Runs once a day at 00:00 server time. Same as @daily and @midnight.
0minute 00hour 0*every day*every month*every day of the weekBoth day fields are set, so it runs on a day that matches either one, not both.
Cron uses the server's time zone. Most servers run in UTC; check with date on the server.
Midnight is the default for nightly backups, invoices and cleanup. It's also the job most likely to fail silently: nobody is awake to notice, and you find out the day you need the backup.
@daily / @midnight: the same as 0 0 * * *.30 2 * * *: daily at 02:30, after other midnight jobs finish.0 0 * * 1-5: midnight on weekdays only.*), standard cron runs when either matches, not both. 0 0 13 * 5 runs on every 13th and every Friday.&& before the ping so a failed job doesn't ping.PATH and no shell profile. Use full paths in the command.on: schedule): Same 5-field syntax, in UTC by default. The shortest interval is 5 minutes, and runs can start late under load. GitHub docs.spec.timeZone (stable since v1.27), not with CRON_TZ in the schedule. Kubernetes docs0 0 * * * /path/to/your-job.sh && curl -fsS -m 10 https://<your heartbeat URL> > /dev/nullThis job runs less than once a day. 12happy heartbeats cover jobs that run at least daily.
Heartbeat monitors are on Pro ($15 a month, or $12 billed yearly) and Agency. Free covers website, keyword, ping and port checks.
0 0 * * * or @daily.
Only if the server's time zone is UTC. Check with date.
Add a heartbeat ping after the backup command. See below.