PDA

View Full Version : Recovering from an Archive and Install


tvisher
10-05-2008, 12:47 PM
Hello Everyone,

Question: Could I eschew the rather round-a-bout method documented [here](http://support.apple.com/kb/HT2196?viewlocale=en_US) in favor of simply `mv`ing the files onto an external harddrive and then `cp`ing them back into their appropriate locations.

Lengthy Explanation: My netinfo database just got corrupted somehow and the apple product specialist at the support line told me that I would have to do an archive and install, without preserving user and network settings (because that would just preserve the problems created by the netinfo database corruption), and then follow the instructions [here](http://support.apple.com/kb/HT2196?viewlocale=en_US) in order to recover my old files and settings.

I'm not a genius here, so I'm currently attempting to follow those instructions to the letter at this point (I'm really not interested in loosing all my data. However, I also know a little bit about bash and I'm confused as to the necessity of creating a disk image to then copy things off of. My thought is that they have you do this because it's one of the most _transparent_ ways of having the Finder do a `cp` without preserving permissions and ownership (because if the file is in the same file system, it just tries to do a `mv` which attempts to preserve the permissions, which equals explosion since a new user had to be set up to recover from the netinfo db corruption).

Thoughts? It's taking me __forever__ to create the disk image which is why I'm interested in canceling it and just going with the command line (which understandably, is not what Apple's going to document in a public facing tutorial on recovering from this).

Thanks in advance!

hayne
10-05-2008, 04:46 PM
It's taking me __forever__ to create the disk image

Please define "__forever__" - exactly how long is it taking?
Is this because the file copying is taking a long time?
What is the total size (in GB) of files being copied?

tvisher
10-05-2008, 07:54 PM
Hey Hayne,

Forever as in >4 hours. It's done now so the question is kind of moot. It still would be nice to know in case I need to do this again in the future. I figured that the creation of the disk image must have taken longer than just `mv`ing the files from the command line because of the overhead of the disk image, but oh well, what's done is done.

Total size in GBs was probably ~100.

Thanks for your help!

tvisher
10-05-2008, 08:24 PM
P.S. I would like to maintain all of the metadata _except_ for the user/group when I recover the files. I don't think the simple drag and drop recommended in the article will do that, right?

hayne
10-05-2008, 08:47 PM
I just read the Apple article you referred to.
On 10.5 (which I assume you are using), the last section of that article describes a simple procedure to get back the files from the archived system folder. That procedure does not involve using a disk image - you simply move the archived files back into the /Users folder and then create a new account with the old username.