Tools · Scheduling

Cron Command Generator & Parser

Generate and parse cron expressions for scheduling tasks on Linux, Unix, and other automation systems. Build schedules visually, decode existing expressions, preview next run times, and copy ready-to-paste crontab lines — all in your browser.

Generator + parser · presets · next-run preview5 & 6-field cron · 100% client-side

Quick presets

Cron expression

* * * * *

Minute: *Hour: *Day: *Month: *DOW: *

Minute

*

Hour

*

Day (month)

*

Month

*

Day (week)

*

Plain English

Runs every minute

Minute:every minute
Hour:every hour
Day of month:every day
Month:every month
Day of week:every day of the week

Next scheduled runs (local timezone)

  • Jun 10, 2026, 8:53:00 PM
  • Jun 10, 2026, 8:54:00 PM
  • Jun 10, 2026, 8:55:00 PM
  • Jun 10, 2026, 8:56:00 PM
  • Jun 10, 2026, 8:57:00 PM
  • Jun 10, 2026, 8:58:00 PM
  • Jun 10, 2026, 8:59:00 PM
  • Jun 10, 2026, 9:00:00 PM
Crontab line
* * * * * /home/user/backup.sh

Add this line with crontab -e. For Minecraft server restarts: 0 4 * * * /path/to/restart.sh

How cron expressions work

Cron is the standard job scheduler on Linux and macOS. Each line in a crontab file contains a schedule followed by a command. The schedule uses space-separated fields:

FieldRangeSpecial characters
Minute0–59* any · */5 every 5 · 0,30 list
Hour0–23*/6 every 6 hours · 9-17 range
Day (month)1–311 first of month · 15 mid-month
Month1–12Names like jan, dec also work
Day (week)0–6 (Sun=0)1-5 weekdays · 0,6 weekends

Cron schedules for Minecraft servers

VPS and dedicated hosts running Paper, Spigot, Purpur, or Fabric often rely on cron for maintenance tasks that keep worlds healthy and backups current. Common patterns:

TaskExample cronNotes
Daily restart0 4 * * *4 AM local — clears memory leaks from plugins
World backup0 3 * * *Run before restart; use save-all first
Log rotation0 0 * * 0Weekly on Sunday midnight
Health check*/15 * * * *Ping server; restart if down — pair with our Status Checker
Plugin cleanup0 2 * * 1Weekly Monday 2 AM for chunk or entity purges

Before scheduling restarts, estimate RAM needs with our RAM Calculator and confirm the host meets full requirements via the Requirements Calculator. Automated scripts should use screen, tmux, or a process manager like systemd so the server survives SSH disconnects.

Common crontab examples

# Edit your crontab
crontab -e

# Every day at 4 AM — restart Minecraft server
0 4 * * * /opt/minecraft/restart.sh

# Every 6 hours — run save-all via RCON script
0 */6 * * * /opt/minecraft/save-all.sh

# Every Monday at 6 AM — weekly full backup
0 6 * * 1 /opt/minecraft/full-backup.sh

# First day of each month — archive old logs
0 0 1 * * /opt/minecraft/archive-logs.sh

# At reboot — start the server
@reboot /opt/minecraft/start.sh

Frequently asked questions

Why does my cron job not run at the expected time?

Check the server timezone (timedatectl), confirm the script path is absolute and executable (chmod +x), and inspect /var/log/syslog or journalctl for cron errors. Use this tool's parser to verify your expression and preview next runs.

Can I parse an existing cron string?

Yes. Switch to Parser mode, paste any five- or six-field expression (or a macro like @daily), and the tool breaks down each field in plain English with upcoming run times.

Do plugins replace cron for Minecraft tasks?

In-game plugins (Essentials, CoreProtect schedulers, etc.) handle tasks while the server is running. Cron handles OS-level work: starting/stopping the JVM, filesystem backups, log rotation, and health monitoring when the server process may be down.