Download the new Switched app for your iPhone

Skip to Content

Android coverage by humans
AOL Tech

Filed under: How-tos, Tips and tricks

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]
jobs & resumes
TUAW Jobs

Find the Best Candidates & Jobs on the TUAW Jobs Job Board

Find a Job / Post a Job›

Reader Comments (Page 1 of 1)

Tip of the Day

Want to create custom shortcuts? Head to the Keyboard Shortcuts tab of the Keyboard and Mouse part of System Preferences to create shortcuts for common tasks that appear in the Services menu. You can also add application shortcuts for tasks that appear in the menu bar of those programs.

Facebook
Follow us on Twitter!

TUAW [Cafepress] 

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Google Earth for iPhone
Podcaster
Storyist 2.0
AT&T Navigator Road Test
Bento for iPhone 1.0
Scrabble for iPhone
Tom Bihn Checkpoint Flyer Briefcase
Apple Vanity Plates
Apple booth Macworld 07
WorldVoice Radio
Quickoffice for iPhone 1.1.1
Daylite 3.9 Review
DiscPainter
Mariner Calc for iPhone
2009CupertinoBus
Crash Bandicoot Nitro Kart 3D
MLB.com At Bat 2009
Macworld Expo 2007 show floor

 

Our Writers

Victor Agreda, Jr.

Programming Manager, AOL Tech

RSS Feed

View more Writers

More Apple Analysis

AOL Radio TUAW on Stitcher