Bird
0
0

You want a systemd timer to run a backup service every day at 3:30 AM but only if the system was off at that time. Which timer configuration achieves this?

hard📝 Application Q15 of 15
Linux CLI - Cron and Scheduling
You want a systemd timer to run a backup service every day at 3:30 AM but only if the system was off at that time. Which timer configuration achieves this?
A[Timer] OnActiveSec=03:30:00 Persistent=true
B[Timer] OnCalendar=*-*-* 03:30:00 AccuracySec=1min
C[Timer] OnCalendar=*-*-* 03:30:00 Persistent=true
D[Timer] OnBootSec=03:30:00 Persistent=false
Step-by-Step Solution
Solution:
  1. Step 1: Identify daily schedule at 3:30 AM

    The OnCalendar=*-*-* 03:30:00 sets the timer to run daily at 3:30 AM.
  2. Step 2: Ensure missed runs execute after downtime

    Persistent=true makes systemd run missed jobs after system was off at scheduled time.
  3. Step 3: Evaluate other options

    AccuracySec adjusts timing precision but doesn't affect missed runs; OnBootSec and OnActiveSec run relative to boot or activation, not fixed time.
  4. Final Answer:

    [Timer] OnCalendar=*-*-* 03:30:00 Persistent=true -> Option C
  5. Quick Check:

    Daily 3:30 AM with catch-up = OnCalendar + Persistent [OK]
Quick Trick: Use OnCalendar with Persistent=true for daily missed runs [OK]
Common Mistakes:
  • Using OnBootSec instead of OnCalendar for fixed time
  • Forgetting Persistent=true to run missed jobs
  • Confusing AccuracySec with scheduling behavior

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes