baodrate / snap-sync

Use snapper snapshots to backup to external drive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Systemd timer is not executing

cmonty14 opened this issue · comments

Hi,
I have configured this systemd timer on 03/19/2020:

vlcdbs1p:~ # cat /usr/lib/systemd/system/snap-sync.timer
[Unit]
Description=Run snap-sync weekly

[Timer]
OnCalendar=weekly
AccuracySec=12h
Persistent=true

[Install]
WantedBy=timers.target

However the timer is not executing since the creation:

vlcdbs1p:~ # systemctl list-timers --all
NEXT                          LEFT        LAST                         PASSED     UNIT                         ACTIVATES
Sat 2020-03-28 00:00:00 CET   13h left    Fri 2020-03-27 00:00:01 CET  10h ago    logrotate.timer              logrotate.service
Sat 2020-03-28 09:40:01 CET   23h left    Fri 2020-03-27 09:40:01 CET  46min ago  systemd-tmpfiles-clean.timer systemd-tmpfiles-cle
Mon 2020-03-30 00:00:00 CEST  2 days left Mon 2020-03-23 00:00:02 CET  4 days ago fstrim.timer                 fstrim.service
n/a                           n/a         n/a                          n/a        snap-sync.timer              snap-sync.service
n/a                           n/a         n/a                          n/a        transactional-update.timer

5 timers listed.

vlcdbs1p:~ # ls -l /usr/lib/systemd/system/snap-*
-rw-r--r-- 1 root root 201 Mar 19 17:14 /usr/lib/systemd/system/snap-sync.service
-rw-r--r-- 1 root root 133 Mar 19 13:41 /usr/lib/systemd/system/snap-sync.timer

How can I fix this problem?

THX

Timer was "inactive / dead".
To fix this I executed systemctl start snap-sync.timer.