haertig |
10-01-2013 04:13 PM |
There is stuff in /etc that is unique to a server (static IP addresses and things like that), so you can't just copy /etc from a different computer, even a supposedly "identical" one, and have things work perfectly. Another example: You might have the same users on the two servers, but their user numbers would be different in /etc/passwd (this would depend on how you created those userids in the first place). If you are lucky, you could possibly copy /etc, edit a few files, and get it to work. Finding what might need to be edited would be a nightmare I would predict. But in general, what you are proposing is a very bad idea. These servers would really have to be "identical" for what you propose to have a ghost of a chance of working, even with some manual file editing. Was one server cloned from the other, and neither was ever subsequently administered seperately? If that's not the case, I would abandon your plan quickly.
Linux is pretty resilient when it comes to picking up an entire Linux installation and copying it to another computer. But the key is "entire Linux installation". Not just /etc all by itself.
How did you lose /etc? If it was due to hardware disk problems then your whole system is probably trashed anyway. If you accidently did something like "sudo rm -rf /etc" then I am at a loss for words.
|