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 August 27th

Sat, 1:34 AM
Tim Cook Pivots to Play Active Role in Shaping Apple Narrative
Fri, 8:35 PM
WhatsApp's New Privacy Policy is a Big Trust Killer
Fri, 3:35 PM
Soundjump Bluetooth Speaker Has Built-In Portable Charger: $104.99
Fri, 3:21 PM
How to Opt Out of WhatsApp's Facebook Data Sharing
Fri, 1:29 PM
Get Your 80s Synth on with the Stranger Things Soundtrack on Apple Music
Fri, 12:43 PM
The iPad Pro 9.7-inch Keyboard Case for Road Warriors
Fri, 11:00 AM
TMO Daily Observations 2016-08-26: Interview with Fling's Dave Hamilton
Fri, 10:00 AM
Seeing a Folder's Size in the Terminal
Thu, 7:20 PM
The Battery That's Lasted 176 Years
Thu, 6:32 PM
Enough with iPhone Headphone Jack Kvetching
Thu, 6:30 PM
How to Enable Apple Watch Screenshots in watchOS 3
Thu, 6:11 PM
Apple Patches Critical Zero-Day Data Security Exploit in iOS 9.3.5 Update
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!