You are not logged in.
Pages: 1
I want to set a weekly snapshot of my home subvolume. To do this, I wrote a drop-in file this way (the default one set a daily snapshot):
$ cat /etc/systemd/system/yabsnap.timer.d/yabsnap-weekly.conf
[Timer]
OnCalendar=
OnCalendar=Mon *_*_* 02:00:00
# systemctl start yabsnap.timer
Failed to start yabsnap.timer: Unit yabsnap.timer has a bad unit file setting.
See system logs and 'systemctl status yabsnap.timer' for details.
# systemctl status yabsnap.timer
○ yabsnap.timer - Yet Another Btrfs Snapshotter Timer
Loaded: bad-setting (Reason: Unit yabsnap.timer has a bad unit file setting.)
Drop-In: /etc/systemd/system/yabsnap.timer.d
└─yabsnap-weekly.conf
Active: inactive (dead)
Trigger: n/a
Triggers: ● yabsnap.service
Sep 16 11:26:06 magnolia systemd[1]: /etc/systemd/system/yabsnap.timer.d/yabsnap-weekly.conf:4: Failed to parse calendar specification, ignoring: Mon *_*_* 02:00:00
Sep 16 11:26:06 magnolia systemd[1]: yabsnap.timer: Timer unit lacks value setting. Refusing.Looking at the logs, I have this entry:
yabsnap.timer: Timer unit lacks value setting. Refusing
Surprisingly, after this forum thread, my settings were good and the service timer was working perfectly. I didn't change anything since then but the timer is now broken.
I don't see where the error comes from. Thank you for help
Last edited by gabx (2024-09-16 11:10:25)
Offline
the line with the date must be changed: the underscore must be replaced by minus
[Timer]
OnCalendar=
OnCalendar=Mon *-*-* 02:00:00Offline
Pages: 1