Re: [Hampshire] cron riddle

Top Page
Author: Hugo Mills
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] cron riddle

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57312100.hantslug.org.uk.29294': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Fri Nov 13 22:27:00 2009 GMT
gpg: using DSA key 20ACB3BE515C238D
gpg: Can't check signature: No public key
On Fri, Nov 13, 2009 at 07:32:16PM +0000, Chris Dennis wrote:
> 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.
>
> If the "second Friday of the month" option is the best available, should
> rsnapshot run a cycle of 4 weekly backups or 5?


I'm afraid the answer is "both". Cron won't allow you to do
something on a period of a fixed number of weeks, and the somewhat
gimcrack calendar system we use ensures that for any chosen weekday,
you're likely to get about four or five months a year with five of
them in.

Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
               --- Nostalgia isn't what it used to be. ---