Thu, 22 Sep 2005

Simple periodic maintenance script

Because my macs are not always awake at the scheduled times for the periodic cron system maintenance tasks, I've started to run them from a script every week or so.

The simple script I use is shown below:

#!/bin/bash
set -v
# Running the daily,weekly and monthly periodic scripts
sudo periodic daily && sudo periodic weekly && sudo periodic monthly
# Updating pre-binding
sudo update_prebinding -root / -force
# Repair disk permissions
sudo diskutil repairPermissions /

[14:10] | [/MacOSX] | # | G