Leopard Server Time Machine Restore experience
I've been setting a Mac OS X 10.5 Leopard Server at the office and yesterday I ran into some issues setting up Open Directory that I couldn't fix.
At first I thought I'd have to rebuild until I remembered that I had set up Time Machine on the server. So I popped in the Leopard Server DVD and booted to it. I chose the Restore option from the Utilities menu. I restored from the backup made about 4 hours previous, in order to ensure it was from a time before I had messed anything up.
Rather than doing a compare and copying the files with differences (which is how Time Machine create backups), the restore wiped my hard drive and copied the entire fileset from backup.
Once rebooted though, the Software Update service failed to start automatically. I tried to start it in the Server Admin console and got a CANNOT_START_SERVICE_ERR message. I also noticed, in Server Admin, that Software Update had no logs files. That piece of information made me wonder about what Time Machine was not backing up, and therefore what had not been restored.
I found this piece by Devin Lane on Time Machine exclusions, and yes, /var/log is an standard exclusion.
Once I recreated the /var/log/swupd directory, where Software Update stores logs, Software Update started normally and recreated it's log files.
At first I thought I'd have to rebuild until I remembered that I had set up Time Machine on the server. So I popped in the Leopard Server DVD and booted to it. I chose the Restore option from the Utilities menu. I restored from the backup made about 4 hours previous, in order to ensure it was from a time before I had messed anything up.
Rather than doing a compare and copying the files with differences (which is how Time Machine create backups), the restore wiped my hard drive and copied the entire fileset from backup.
Once rebooted though, the Software Update service failed to start automatically. I tried to start it in the Server Admin console and got a CANNOT_START_SERVICE_ERR message. I also noticed, in Server Admin, that Software Update had no logs files. That piece of information made me wonder about what Time Machine was not backing up, and therefore what had not been restored.
I found this piece by Devin Lane on Time Machine exclusions, and yes, /var/log is an standard exclusion.
Once I recreated the /var/log/swupd directory, where Software Update stores logs, Software Update started normally and recreated it's log files.
Labels: mac
