Both cron
and anacron
can schedule execution of recurring tasks to a certain point in time defined by the user.
Major differences are:
cron
gives minimum time set can be in minute whileanacron
gives it in days- cron job can be scheduled by any normal user while Anacron can be scheduled only by the super user.
cron
expects the system to be up and running while theanacron
doesn’t expect the system to be up and running all the time. For anacron, if a job is scheduled and the system is down that time, it will execute the job as soon as the system is up and running socron
is ideal for servers whileanacron
is ideal for desktops and laptops.cron
should be used when you want a job to be executed at a particular hour and minute whileanacron
should be used in when the job can be executed irrespective of the hour and minute.