While Time Machine has been much-ballyhooed, it is not exactly a backup product (it provides continuous data protection—provided you keep the extra hard drive that you MUST use for Time Machine to work at all connected at all times), nor is it a host imaging product. It's good for “damn, I didn't mean to change that file that way”, but it's not clear that it's all that hot for “restore this system to a default image” (like you'd want in a lab environment) nor for “the system is completely fragged” (say, from an OS upgrade gone wrong).
In those cases, one wants something more like what
First, when you format a new HFS+ drive, it's easy to not enable the “owners enabled” setting. I'm hazy on exactly what that setting really means (thanks for acting like MS, Apple), but I have the impression it means that any user on the host can read all files on the attached disk, rather like mapping anonymous users to root for NFS. I'm taking Brad's word for it that this needs to be changed for Mac OS X to boot from the volume, but it stands to reason. You fix that with the /usr/sbin/vsdbutil command (which, apparently, doesn't have a man page). You probably only need to do this once per volume, but it doesn't take any time or hurt to explicitly activate each time, so whatever.
Second, after copying data to the volume, one must bless(8) the CoreServices directory in the System Library, which enables the BootX application in that directory on that volume and puts the EFI appropriate for booting the OS based in the CoreServices directory on the disk in question.
So, now my backup script for my two Mac laptops (one already upgraded to 10.5, since if the upgrade fragged it I'd just reinstall—its primary use is to run the stereo, one on which I'm making sure I've got a bootable fallback before I do the same) looks like this (modulo actually having most of this in shell variables):
target=/Volumes/whatever
vsdbutil -a $target
rsync -avxE –delete –ignore-errors / $target
bless –folder “${target}/System/Library/CoreServices” –bootinfo –verbose
Yes, there is a “recover from Time Machine” choice somewhere (in the 10.5 install media, I think?), and maybe it works, but I'm certain this works and I actually know what it's doing under the covers. It's simple. Simple is good for backups of last resort.
And yes,
Update: At some point,
Post a Comment