Execute commands at regular intervals, even when the system is not running continuously. Useful for automated tasks on power-cycled systems.
Anacron is a computer program that performs periodic command scheduling, even in the event of a system reboot. It is typically used to execute jobs that require running on a regular basis, but may not run if the system is powered off at the scheduled time.
Anacron works by checking the timestamp of the last execution of a job when the system boots up. If a scheduled job has missed one or more execution times because the machine was off, Anacron will run those jobs immediately at startup to catch up. This ensures the jobs get executed at the desired frequency even if the system is not on 24/7.
Some examples of tasks that Anacron is helpful for executing include:
The key advantage of using Anacron over the standard cron utility is that it accounts for periods when the computer system is inactive. This helps administer servers, desktops and laptops that get powered off daily without missing important scheduled tasks.
Here are some alternatives to Anacron:
Suggest an alternative ❐