Re: beat updatedb over the head?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 19, 2022 at 8:05 AM Tom Horsley <horsley1953@xxxxxxxxx> wrote:
>
> Anyone have an example of a systemd timer that runs at a specific
> time of day (like 1AM) so I can avoid thinking too hard? :-).

I have the following in a timer to run a prune of my backup at 6 AM Mondays:

OnCalendar=Mon *-*-* 06:00:00

So if you wanted to have a timer run daily at 1am, you could use

OnCalendar=* *-*-* 01:00:00

(If you're fine with it running at midnight, you can use OnCalendar=daily)

A more detailed discussion is at
https://www.freedesktop.org/software/systemd/man/systemd.time.html#Calendar%20Events

> Can I override an installed systemd timer by putting a replacement
> with the same name under /etc somewhere?

Admin-installed units go in /etc/systemd/system . I believe anything
you define there will override what ships in /usr/lib/systemd although
I haven't verified that myself.

-- 
Ben Cotton
He / Him / His
Fedora Program Manager
Red Hat
TZ=America/Indiana/Indianapolis
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux