Cron to systemd Timer Converter
Convert standard 5-field cron expressions into paired systemd .timer (OnCalendar=) and .service units with next-10-runs preview.
Examples:
100% Client-Side · Zero Network Requests
Input · Cron Expression
Output · systemd .timer + .servicepg-backup.timer
Saved you from writing YAML by hand?Buy me a coffee ($3)
Side-by-Side Syntax Cheat Sheet: Cron vs. systemd Timer
Quick reference for the most common directives translated by OpsForge.
| Concept | Cron | systemd Timer | Notes |
|---|---|---|---|
| Every 15 Minutes | */15 * * * * | OnCalendar=*-*-* *:*/15:00 | Paired with Persistent=true for missed runs |
| Daily at 02:00 | 0 2 * * * | OnCalendar=*-*-* 02:00:00 | Runs in system timezone unless UTC specified |
| Weekdays 08:30 | 30 8 * * 1-5 | OnCalendar=Mon..Fri *-*-* 08:30:00 | Weekday ranges use double-dot (..) |
Common Pitfalls & Best Practices
- Test your generated `OnCalendar=` value on Linux using `systemd-analyze calendar "<expression>"`.
- Keep `Persistent=true` in `[Timer]` so missed jobs run automatically after a server reboot.
Frequently Asked Questions
Are my Cron configs or secrets uploaded to a server? +
No. OpsForge executes 100% locally in your browser using client-side TypeScript parsers. Zero configuration text, API keys, or environment variables ever leave your device.
How does OpsForge handle Cron directives that do not exist in systemd Timer? +
Any flag or directive without a 1:1 equivalent in systemd Timer is flagged in the Migration Notes panel below the editor and preserved as an inline comment in the generated output so nothing is silently dropped.
Can I use this Cron to systemd Timer converter offline? +
Yes. Once the page loads, every parser and serializer runs completely offline with zero network requests.