tutorial / Dec 2, 2026
Preview a systemd Maintenance Window Without Starting the Job
Check four nominal run times against your NAS maintenance window before a timer can wake the disks or compete with a backup.

Prerequisites
A NAS can be idle at midnight and busy at two. A photo indexer reading thumbnails, a media server recording late television and a backup pulling changed blocks all want the same disk heads. Before installing a timer for another maintenance job, ask a smaller question: which four dates would its calendar rule select? You can answer without waking the storage pool, starting a service or even writing a unit file.
Use a Linux shell with systemd-analyze installed, ideally the same version as the machine that will own the timer. No root privileges are needed. This example asks for weekdays at 03:15 UTC, not three hours after boot and not 03:15 on the kitchen clock. Write down which of those meanings your household actually needs. If the backup appliance advertises its window in local time, translate it before deciding whether the two jobs overlap.
Setup
- Run
systemd-analyze --version. Note the version alongside the schedule. If the command is missing on a stripped-down NAS, use a Linux test VM with the matching utility rather than installing packages on the storage appliance during its backup window. - Choose a fixed reference just after a Friday slot:
2026-12-04 03:16:00 UTC. This is an input to the calculation, not a request to change the system clock. A moving reference such as now makes it harder for someone else to reproduce your result next week. - Run
systemd-analyze calendar --base-time='2026-12-04 03:16:00 UTC' --iterations=4 'Mon..Fri *-*-* 03:15:00 UTC'. Keep the quotes: the entire specification must reach the parser as one argument and the asterisks must not expand into names from your working directory. - Read the first occurrence and all three following ones. Record the UTC dates and clock times rather than copying a relative phrase such as two days from now. Compare those entries with the scheduled end of the backup, allowing time for a larger than usual backup to drain.

Verification
For this reference, the first nominal slot should be Monday, December 7 at 03:15 UTC; the fourth should be Thursday, December 10 at the same UTC time. Neither Saturday nor Sunday belongs in the list. If the output uses the host’s timezone, compare the UTC rendering, not just the displayed hour. The normalized expression tells you what the parser understood; the occurrence list tells you whether that understanding matches your requirement.
As a negative control, repeat the command with only Mon..Fri removed from the quoted rule. The first event now belongs on Saturday. Both inputs are valid. The difference is why checking only for a successful exit is not a schedule test. Keep the weekday version as the candidate and discard the daily control. For a local-time requirement, run a separate comparison on either side of your region’s clock change before adopting a UTC rule.
What the preview cannot promise
The calendar calculation is not a reservation on the disks. The timer unit manual describes how accuracy and randomized delay affect activation. Neither knob is part of the expression you just evaluated. A service that is already active when its timer elapses is not restarted simply because another nominal slot arrived. That matters when a parity check overruns into the following morning.
A powered-down mini PC is another useful boundary case. A calendar expression still has a mathematical next occurrence while the machine is off. Whether a missed event leads to an activation when the timer returns depends on timer configuration, including Persistent=. Do not infer a catch-up policy from the four dates. Write it down separately: should the job run after boot, possibly during breakfast streaming, or wait for the next quiet window?
Troubleshooting
A parse error is an expected outcome for malformed input. Recheck the literal dots in the weekday range, the spacing before UTC and the shell quotes. An unknown option instead points to a difference in tool versions: consult man systemd-analyze on the test host before changing the rule. The command reference documents the calendar subcommand; the time syntax manual distinguishes calendar events from durations.

A clean parse with an unwanted Saturday is a policy error. Check the weekday selector before investigating service logs. Correct dates that overlap the backup are also a reason to reject the candidate: move the proposed hour on paper and run the same fixed-reference comparison again. Do not shorten an existing backup merely to make the new rule fit.
Rollback and recovery
There is nothing to uninstall after this exercise. The commands neither write to /etc/systemd/system/ nor enable a timer. Rollback means dropping the candidate expression from your notes and retaining the previous schedule. If someone has separately edited an installed unit, that is a different change; identify its owner and prior configuration before attempting a reload. A successful preview is evidence about dates, not approval to deploy. Hand off the expression, reference instant, four expected slots and missed-run decision together so the next maintainer can repeat the check.
Verification ledger