The Mac Observer

Skip navigational links

You're viewing an article in TMO's historic archive vault. Here, we've preserved the comments and how the site looked along with the article. Use this link to view the article on our current site:
Automated Backups with Mac OS X's Launchd

Automated Backups with Mac OS X's Launchd

by , 3:15 PM EST, December 27th, 2006

A tutorial that described how to automatically launch a backup script in Mac OS X when an external drive is mounted was published at MacResearch.org on Friday.

Mac OS X 10.4, Tiger, introduced a new daemon called launchd that replaces inetd, init, mach_init, and System Starter. By defining a plist, the user can create a process that watches for a volume to be mounted, then run a backup script. In the example, the UNIX command rsync was used to generate a full or incremental backup to an external volume. The basic rsync technique has been explained at MacDevcenter.

The tutorial was helpful in explaining the details of how Mac OS X launches daemons and applications. It's also useful for those who want to see how Apple's more modern launchd compares to traditional UNIX mechanisms for starting up processes. Finally, for those who are unhappy with their current backup software, the tutorial, combined with the MacDevCenter link, reveals how system administrators and technical users can get control and roll their own backup procedure.

Digg!

Recent TMO Headlines - Updated February 28th

Mon, 6:28 PM
iOS: Long Press Icons For Safari Shortcuts
Mon, 5:49 PM
Apple, Ron Johnson, J.C. Penney and the Future
Mon, 5:11 PM
Apple gets the Upper Hand on Qualcomm Thanks to Intel's CDMA Chips
Mon, 3:53 PM
TMO Background Mode: Interview with CNET Senior Editor & TV Reviewer David Katzmaier
Mon, 2:08 PM
Why Apple Might Discontinue the Mac Pro - TMO Daily Observations 2017-02-27
Mon, 12:06 PM
FRESHeBUDS Air Bluetooth 4.1 Earbuds
Mon, 11:34 AM
New Drone Footage Shows Nearly Complete Apple Park
Mon, 11:10 AM
AT&T Revamps Unlimited Data Plans with Tethering, Lower Prices
Sun, 10:47 AM
How do I choose a UPS? – Mac Geek Gab 646
Sun, 1:15 AM
Get Free Bitcoins from 11 Faucets That (Still) Pay
Sat, 9:42 PM
How to Turn Siri into a Metronome (Video)
Fri, 10:17 PM
Stanford's 'Developing iOS 10 Apps with Swift' free on iTunes U
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!