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 Headlines - Updated June 27th

Mon,12:40 PM
Three Ways to Protect your Apple Watch (and One Way Not To)
Sun,12:18 PM
MGG 611: Troubleshoot & Resolve Your Mac & Apple Issues
Fri,7:00 PM
Apple Kills the Thunderbolt Display - Will the Mac Pro Be Next?
6:54 PM
6 Great Display Choices for Your MacBook Pro and Mac Pro
6:25 PM
Apple Drops 2.81% in Broad Brexit Selloff
5:01 PM
G Cloud Unlimited Backup for iPhone and Android: 5-Year Subscription for $29.99
1:46 PM
TMO Daily Observations 2016-06-24: Goodbye Thunderbolt Display, Spinning off the Mac
11:48 AM
Plex Media Server Turns 1.0!
9:05 AM
OS X: Using Policy Banner for Custom Login Screens
Thu,9:01 PM
Apple Discontinues Thunderbolt Display, Directs Customers to Unspecified 3rd Party Displays
8:55 PM
Apple Adds RAW Support for 15 DSLR Cameras from Canon, Olympus, Panasonic, Sony
6:20 PM
How to Display Calories or kJ on your iPhone/Apple Watch Health Apps
  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!