Re: [Hampshire] cron riddle

Top Page

Reply to this message
Author: Peter Salisbury
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] cron riddle
2009/11/13 Chris Dennis <cgdennis@???>:
> Peter Salisbury wrote:
>>
>> Use anacron? From the man page:
>>
>> 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 continuously. Hence, it can be used on machines that aren't
>> running 24 hours a day..
>>
>> HTH, Peter
>
> Thanks for that.  What I didn't mention before is that the machine IS
> running full-time, but the external USB drive that rsnapshot backs up to
> gets taken away at the weekends.  So I always want to run it on a weekday.
>


Anacron still works even if the machine is on all the time, it's just
that it doesn't NEED it to be. The advantage is that 'every fourth
week' is actually the same as 'every 28 days' which anacron can handle
with no problem.

ATB, Peter