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 September 30th

Thu, 9:34 PM
Safari 10: Hide Flash from Every Website Except Some
Thu, 6:53 PM
Use 3D Touch in LINE to Read Messages without a Read Receipt
Thu, 5:55 PM
Apple Rolls iPhone 7 Commercial, "Balloons"
Thu, 5:22 PM
My Fantasy Wish List for Apple's October Event
Thu, 1:48 PM
How to Make macOS Sierra Empty Your Mac's Trash for You
Thu, 1:23 PM
TMO Daily Observations 2016-09-29: John's Apple Product Wish List
Thu, 12:47 PM
Smartphone Photo and Video Certification Bundle: $29
Thu, 10:47 AM
New Retina MacBook Pro Models Expected in October
Wed, 7:44 PM
8Bitdo Goes Retro with Apple-themed Game Controller for iPhone, iPad
Wed, 5:16 PM
ACM 378: Life Without a Headphone Jack, More Apple Watch, Siri on the Mac
Wed, 5:08 PM
NuGuard KX Case for iPhone 7 Offers Superb Protection
Wed, 4:39 PM
MyMac Spotlight Interview on Bryan Chaffin
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!