откат системы по рассписанию. КАК?

Pivushkov Alexandr pav на icp.ac.ru
Пт Дек 10 06:55:06 GMT 2010


Евгений Хиль пишет:
> а про anacron я так и не понял. когда он выполнит скрипт?при первом включении после пропущенной даты?
man anacron
...
    Anacron can be used to execute commands periodically, with a 
frequency specified in days.  Unlike cron(8), it does not assume that 
the machine is running continu‐
        ously.  Hence, it can be used on machines that aren't running 24 
hours a day, to control daily, weekly, and monthly jobs that are usually 
controlled by cron.

        When executed, Anacron reads a list of jobs from a configuration 
file, normally /etc/anacrontab (see anacrontab(5)).  This file contains 
the  list  of  jobs  that
        Anacron controls.  Each job entry specifies a period in days, a 
delay in minutes, a unique job identifier, and a shell command.

        For  each job, Anacron checks whether this job has been executed 
in the last n days, where n is the period specified for that job.  If 
not, Anacron runs the job's
        shell command, after waiting for the number of minutes specified 
as the delay parameter.

...

У меня в /etc/anacrontab :
  @monthly	15	cron.monthly nice run-parts --report /etc/cron.monthly

значит, теоретически, если задача которая должна выполняться ежемесячно 
не выполнилась по расписанию на момент запуска  Anacron-а, он, выждав 
сколько сказано (у меня 15 минут), запустит эту задачу.

-- 
- Пивушков Александр. Институт проблем химической физики. Черноголовка.


Подробная информация о списке рассылки ubuntu-ru