Folder Action Initiated Automatic Backup of Flash Drive on Mount
Constantinos had a problem that I suspect some other folks have as well. He stores data on flash drives which he carries around between multiple Macs and after losing one of his drives he wanted to work up some kind of automated backup plan. His solution was to work up a method for making an automated backup of the drive every time he plugged it in. Although there were previous approaches to this problem using an Pref Pane called Do Something When, Constantinos wanted a solution that would not depend on having a 3rd party program installed on each of his Macs. Working off of an Apple supplied Folder Action for inspiration, he whipped up a nice solution that uses a Folder Action on the /Volumes folder so that each time he plugs in a drive it runs a backup script that calls rsync to do the actual backing up. (One potential downside of this is that you leave a copy of your data on each machine you plug into).Check out Constantinos' solution here, but this got me thinking that this would work just fine in the other direction as well. That is, you could set up a Folder Action that would immediately copy over changes in your, say, ~/Documents folder every time you plugged in a flash drive. And of course there's nothing limiting this to flash drives, iPods or external HDs could serve as well. And if you don't have Constantinos' reasons for avoiding it, check out our previous tip using the free Do Something When, which makes this process even easier.
[Via MacOSXHints]
Share
Categories
Constantinos had a problem that I suspect some other folks have as well. He stores data on flash drives which he carries around between...
Add a Comment
Adrian
Hey Sal--I'd be interested in that link for triggering an Automator workflow by a disk mount. It looks like it may not have come through.
March 16 2007 at 2:14 PM Report abuse Permalink rate up rate down Reply
Sal
FYI, There's a tutorial on how to trigger an Automator workflow when a disk is mounted here:
March 16 2007 at 12:12 AM Report abuse Permalink rate up rate down Reply
Clair
Unison == 3rd party app, and the fellow mentioned in the article wished to avoid that.
March 15 2007 at 1:14 PM Report abuse Permalink rate up rate down Reply
Hero
You could of course use Unison instead of rsync for two-way syncing.
March 15 2007 at 5:47 AM Report abuse Permalink rate up rate down Reply
Ruben
that has to be one of the hardest to digest titles i have read in while from tuaw...
March 14 2007 at 11:55 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Verizon Leather Sleeve for Tablets for $4 + free shipping
- Wicked Jaw Breaker Noise-Isolating In-Ear Headphones for $6 + free shipping
- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



5 Comments