Why are my daily scripts running more than daily?
March 21, 2006 9:49 PM
Subscribe
Why are my daily scripts on OS X running more than daily?
Being the paranoid sort, I have an rsync backup script that should run every night under OS X Tiger, but there are some problems I've found with every method I've tried.
cron: Does not work if the macintosh is sleeping, but would be my preferred method for scheduling jobs in the early morning hour when I'm sleeping.
launchd: Runs on it's own clock. As far as I can tell, scheduling a task for 3:15am is meaningless if the computer sleeps.
anacron: runs the script just after midnight
and every time I wake up the system. Since my purpose in waking up the system is to get some work done, this is obviously less than desirable.
At this point, I suspect my best option is to never put the system to sleep and go back to cron. Or setup a wakeup call for my system in the power preferences just before the cron job is scheduled.
Second question: will excluding a backup directory in spotlight preferences prevent the automatic mdimport indexing of that directory every time the backup script runs?
posted by KirkJobSluder to computers & internet (3 comments total)
posted by kcm at 11:24 PM on March 21, 2006