[SOLVED] Run script when USB Drive is plugged in
With school starting again pretty soon and with the volume of programming I'll have to do for classes, I'm a little paranoid about losing all of my work. So, on my desktop at home I have a folder that every 30 minutes rsync with a flash drive that is always plugged into the back.
What I want to do is have the computer recognize when I plug my other flash drive into the computer and rysnc it with the desktop. I know I could place the script in a cron and have it run really often just rysnc with the folder where the flash drive mounts, but, I'd rather be more elegant about it.
Any ideas on how to have Gnome or Ubuntu run some script called, say, schbk.sh whenever I first plug it in? Similar to the autorun of Windows.
ASUS M2A-MVP, AMD Athlon 64 X2 4000+, 3 Gb DDR2 800Mhz, GeForce 8600GT XXX Edition, Ubuntu 8.10
Bookmarks