whatis systemd-timer

systemd Timer

Also known as: .timer, OnCalendar

A systemd unit that activates a service on a schedule or after a delay, a modern alternative to cron jobs.

What Is a systemd Timer?

A .timer unit is paired with a .service of the same name. OnCalendar=daily or OnCalendar=Mon *-*-* 03:00 sets a wall-clock schedule, while OnBootSec= and OnUnitActiveSec= set relative ones.

Timers log output to the journal, can catch up on runs missed while the machine was off with Persistent=true, and support randomized delays. systemctl list-timers shows when each one fires next.

Example

[Timer]
OnCalendar=*-*-* 03:00
Persistent=true