|
|
Persistent Growl notifications for long tasks
Sure thing. Sorry if the script isn't as elegant as it could be ( I'm a b-class unix programmer - :-] ). I launch this from a Folder Action that's attached to /Volumes. When I mount the backup disk the folder action starts this script, and when the disk unmounts the folder action checks to see if this process is still running (and if necessary kills it). I've added a few extra comment lines for your benefit; let me know if something's not clear (or if there's something I could have coded better)
One important point: I'm using an updated version of rsync (3.0.7), hence the /usr/local/bin/rsync path. Leopard and Snow Leopard ship with an older version of rsync (2.6.9), and the rsync people changed the options in a non-backward compatible way. the -X option is the 3.0.x option for including extended attributes. That doesn't exist in 2.6.9 (which uses -E for extended attributed; -E in 3.0.x is for preserving executability), so these rsync commands would throw an 'unknown option' error on a standard install. I updated because 3.0.x handles resource forks better, fyi.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.13 seconds |
|