Re: crond/anacron

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

 



On Dec 11, 2021, at 09:03, Patrick Dupre <pdupre@xxxxxxx> wrote:
> 
> I am trouble because I guess that crond and anacron
> run are very close times.
> Hence, they start a backup when another backup is running.
> This creates real problems.
> 
> What do you recommend?
> Running only crond or only anacron?
> Usually, this machine runs every day for at least 1-2 hours
> durin the week, and a long loner during the week-end (when backuo
> is run).
> However, it may happen that the machine is not run during several weeks.

Anacron is a dependency for cronie (the cron daemon) and is normally enabled.  In your case, most likely it is just running the /etc/cron.daily or /etc/cron.weekly jobs you have defined, when you boot your system.  

The thing is, Anacron only runs if you boot after the scheduled job is supposed to run out of cron.  It shouldn’t run twice.  So maybe you have your backups scheduled in more than one place?

Anyway, I agree with the others, use a lock file to prevent running simultaneous backup jobs. There are ways to do this with simple shell logic, with the “dotlockfile” executable.

—
Jonathan Billings
_______________________________________________
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