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.
Quick presets
Cron expression
* * * * *
Minute
*
Hour
*
Day (month)
*
Month
*
Day (week)
*
Plain English
Runs every minute
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
* * * * * /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:
| Field | Range | Special characters |
|---|---|---|
| Minute | 0–59 | * any · */5 every 5 · 0,30 list |
| Hour | 0–23 | */6 every 6 hours · 9-17 range |
| Day (month) | 1–31 | 1 first of month · 15 mid-month |
| Month | 1–12 | Names 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:
| Task | Example cron | Notes |
|---|---|---|
| Daily restart | 0 4 * * * | 4 AM local — clears memory leaks from plugins |
| World backup | 0 3 * * * | Run before restart; use save-all first |
| Log rotation | 0 0 * * 0 | Weekly on Sunday midnight |
| Health check | */15 * * * * | Ping server; restart if down — pair with our Status Checker |
| Plugin cleanup | 0 2 * * 1 | Weekly 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.