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 October 23rd

Fri, 9:07 PM
Inside Apple Michigan Ave Store Opening in Chicago (Photos)
Fri, 8:07 PM
Get a Head Start on Your iPhone X Preorder on October 23
Fri, 7:12 PM
Apple Poaches Amazon Video Exec to Head International Development
Fri, 6:07 PM
Google Finds a Workaround for Apple's Intelligent Tracking Prevention
Fri, 3:52 PM
MOD-t (2nd Gen) 3D Printer on Kickstarter: $300 for a Self-Contained Consumer 3D Printer
Fri, 3:51 PM
iOS 11: How to Share Documents from the Files App
Fri, 3:12 PM
Our Top 5 Picks For Apple Watch Photography Apps
Fri, 2:41 PM
Apple Releases iOS 11.1 Developer Beta 4 with Bug Fixes
Fri, 2:32 PM
Use Your Apple Watch Digital Crown to Zoom Photos
Fri, 2:30 PM
Apple Fixes Several Bugs with watchOS 4.1 Developer Beta 4
Fri, 2:05 PM
Check Out This Cool Cyperpunk Horror Game Coming to Mac [Trailer]
Fri, 1:23 PM
Animoji Trademark Lawsuit, Apple's Sloppy UI Problem - TMO Daily Observations 2017-10-20
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!