systemd Timers vs cron
A backup must run daily at 02:00 on a VM that is often powered off overnight. If the run is missed, it should happen soon after the next boot. Which systemd timer setting provides this?
Choose one answer
OnUnitActiveSec=1d with RemainAfterExit=yes
OnUnitActiveSec=1d
RemainAfterExit=yes
OnBootSec=2h in the .service file
OnBootSec=2h
.service
OnCalendar=daily with Restart=always in the .timer file
OnCalendar=daily
Restart=always
.timer
OnCalendar=*-*-* 02:00:00 with Persistent=true in the .timer file
OnCalendar=*-*-* 02:00:00
Persistent=true