How to run systemd timer every two hours
The syntax to run a systemd timer every two hours is:
example.txt
OnCalendar=*-*-* 00,02,04,06,08,10,12,14,16,18,20,22:00:00
i.e. run it on the first minute and first second (00:00
) of every second hour (00,02,04,06,08,10,12,14,16,18,20,22
).
Check out similar posts by category:
Systemd
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow