Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Is anacron what you want here?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Is anacron what you want here?
Authored by: el bid on Dec 19, '01 04:18:16PM
it basically runs programs every X days like cron does, except it doesn't depend on your computer always being on at the time the program is set to run.


Er, of course this doesn't mean that anacron will run a backup when the computer isn't on... :-)

I don't ever switch computers off, so I'm not entirely clear about the implications, but if I'm guessing right the difference with anacron is that when you switch on it will say: "Heaven's is that the time, I should have run this backup three hours ago", and start backing up right away.

But this probably isn't what you want, is it? You've probably set your backup to run at 3.00am each night when there's a good chance you won't be using the machine -- you don't want backups running while you're actually creating and changing files in your home directory.

My feeling is that cron does a better job here. If it's skipped a backup because the machine was switched off, no big deal. It'll catch up tonight. And it won't suddenly try backing up while you're creating spreadsheets just because it has a pang of guilt.

--
el bid


[ Reply to This | # ]
Yup, it is
Authored by: vasi on Dec 20, '01 01:33:42AM

Anacron actually runs as a cron job; I set it to run every hour. So yeah, it's fairly likely that it will run while I'm using the computer, but since I "nice" the backup command I don't notice a slowdown, just some disk churning.

I don't leave my computer on all the time, partly to save on power and partly cuz the humming bugs me when I sleep. I'd much prefer that anacron really runs the command every day, rather than having cron want to run daily but only really running every week. I've had too many unfortunate accidents to risk my data; a bit of disk churning isn't bad at all.

vasi



[ Reply to This | # ]
Yup, it is
Authored by: el bid on Dec 20, '01 03:16:21AM
but since I "nice" the backup command I don't notice a slowdown

I wasn't raising the issue of resource contention. The point I was making is that it's not a good idea in general to backup files the might be in use. You can't necessarily rely on the integrity of the backup.

--
el bid


[ Reply to This | # ]