Auto-sync script for thumb drive

Here’s my situation.
I’m a college student with a brand new iBook. I constantly need to move between my laptop, pc, and lab computers for projects. I use a thumbdrive to keep all my classwork on.

I’m working on a a script to automatically sync files back and forth between the “classwork” folder on my hd and the one on my thumbdrive. I’d like it to run on mount/unmount of the drive. It should copy or overwrite to the newest file.

I’ve looked around and I haven’t seen anything quite like what I want to do, so I’m going it on my own.

Is there already something out there that I’m missing? Maybe just point me in the right direction, there has to be other people out there with similar needs.


Look at example #2 (auto-backup script) at this webpage from Apple: