My Anacron runs at 7:30 but I want it to start earlier - like before I wake up - because I use it to make my daily snapshot. Anacron is fairly new to me and it appears to ignore times you set in crontab.
There isn't much documentation that I could find about how to change the time anacron activates, but after a little looking around, I discovered this info:
The way to change anacron execution time is with this command:
sudo systemctl edit --full anacron.timer
Then modify the line:
OnCalendar=*-*-* 07..23:30
I wanted to move mine up an hour so I used:
OnCalendar=*-*-* 06..22:30
Again - no docs I could find, so I assumed this means 6am to 10pm on the half-hour (30 minutes).
We'll see tomorrow if I'm right.
There isn't much documentation that I could find about how to change the time anacron activates, but after a little looking around, I discovered this info:
The way to change anacron execution time is with this command:
sudo systemctl edit --full anacron.timer
Then modify the line:
OnCalendar=*-*-* 07..23:30
I wanted to move mine up an hour so I used:
OnCalendar=*-*-* 06..22:30
Again - no docs I could find, so I assumed this means 6am to 10pm on the half-hour (30 minutes).
We'll see tomorrow if I'm right.
Comment