10.4: Trigger backups on connect with launchd
Jan 10, '07 07:30:00AM
Contributed by: blurred
I have been searching for some sort of automated backup while I wait patiently for 10.5's Time Machine. While searching, I found this article on TUAW covering one method of automating the process.
I have re-written the backup scripts from that article to make them a little friendlier. Current features include:
- Supports the backing up of multiple source directories
- Uses rsync to cut down on un-necessary file transfers
- Designed to allow for a minimum time between backups (default 24 hours) to prevent un-necessary system interruption.
I am planning on implementing several new features when time permits, including different backup profiles for different devices (eg: full backup to this drive, but only backup my documents and keychain when my iPod is plugged in...), and network rsync support...
Full code and instructions can be found here, and comments and suggestions welcome...
[robg adds: I haven't tested this one, but since backup is a personal hot topic of mine (not enough people have working (ideally multiple) backups), I thought it worth sharing.]
Comments (9)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20070109045227173