Scheduled jobs often outgrow their first timetable, such as a nightly cleanup that collides with a backup. Changing a systemd timer schedule with an override moves the job to a new time and leaves the original timer file as it was.

systemctl edit stores the change in a small drop-in file under /etc/systemd/system, so a package update to the timer does not overwrite it, and it reloads systemd when you save. The service the timer starts is not touched.

OnCalendar= lines add up instead of replacing each other, so a new line on its own leaves the old schedule running as well. Times follow the host's timezone, and a job can start up to a minute late because of the default AccuracySec= window.

Steps to change a systemd timer schedule:

  1. Read the timer's current schedule.
    $ systemctl cat cache-prune.timer
    # /etc/systemd/system/cache-prune.timer
    [Unit]
    Description=Cache Prune Schedule
    
    [Timer]
    OnCalendar=hourly
    Persistent=true
    
    [Install]
    WantedBy=timers.target

    cache-prune.timer is an example name, so use your timer's name in its place. OnCalendar= is the line that sets the schedule.

  2. Open the timer's override in your editor.
    $ sudo systemctl edit cache-prune.timer

    The current timer file appears underneath as comments, and your change is saved to /etc/systemd/system/cache-prune.timer.d/override.conf.

  3. Add the new schedule above the comment that says Edits below this comment will be discarded.
    /etc/systemd/system/cache-prune.timer.d/override.conf
    [Timer]
    OnCalendar=
    OnCalendar=*-*-* 02:00:00

    The empty OnCalendar= line clears the old schedule, and the next line runs the job at 02:00 every day. To preview a different time, run systemd-analyze calendar '*-*-* 02:00:00' with your own expression.

  4. Save the override by closing the editor.

    systemd reloads the timer's definition when the editor closes. A timer file changed in any other way needs sudo systemctl daemon-reload first.
    Related: How to reload the systemd manager configuration

  5. Restart the timer to apply the new schedule.

    A restart also starts a stopped timer. With Persistent=true, the job runs straight away if the new schedule was missed since its last run.

    $ sudo systemctl restart cache-prune.timer
  6. Confirm the next run in the timer list.
    $ systemctl list-timers cache-prune.timer
    NEXT                            LEFT LAST                        PASSED UNIT              ACTIVATES
    Fri 2026-11-06 02:00:00 UTC 3h 38min Thu 2026-11-05 22:21:40 UTC      - cache-prune.timer cache-prune.service
    
    1 timers listed.
    Pass --all to see loaded but inactive timers, too.

    NEXT shows the new time, and ACTIVATES names the job that will run then.

Share this guide