Systemd Timer

Using systemd timers Requirements Two parts working together: systemd timer systemd service Example: borgmatic.service (i.e. /usr/lib/systemd/system/borgmatic.service) borgmatic.timer (i.e. /usr/lib/systemd/system/borgmatic.timer) Adjusting the timer Default Timer Listing /usr/lib/systemd/system/borgmatic.timer [Unit] Description=Run borgmatic backup [Timer] OnCalendar=daily Persistent=true RandomizedDelaySec=3h [Install] WantedBy=timers.target ✎ - From the Docs -▸ Persistent=true If true, the time when the service unit was last triggered is stored on disk. When the timer is activated, the service unit is triggered immediately if it would have been triggered at least once during the time when the timer was inactive. ...

2025-09-06 · 2 min · 225 words · Sebastian Mangelsdorf