Howto restore a crashed server.

uwgandalf

New member
Joined
May 3, 2011
Messages
3
Hi,

We have a crashed server, the harddisk is fine, all the raw data is still available and that harddisk is still easily mountable. However that whole installation is not bootable anymore.

I've installed a fresh direactadmin install on a new harddisk, which directories do I need to copy to the new install for it to work again?

thanks in advance for all your info.
 
Hello,

Did you search the forums? At least one or two similar threads exist. Nothing changed since then.

Start with /home/<RESELLER_NAME>, it's supposed to contain your users backups.
 
Yeah, I did search, but the search terms are too generic and the forum is rather big.

I know the raw data of the users are in /home, but things like global configuration, are somewhere in /usr/local/directadmin. What are other locations to completely get the server in it's last state.

Btw, there have never been made real DA-backups.
 
If you never did backup the only thing you can do is create each user manually in directadmin and then move data from second disc /home/user

Maybe (but totally not sure) you can restore single user configs (once creted) coping data from /usr/local/directadmin/data/users/ to the new one (pay attention on permissions).

Regards
 
Hi,

Global stuff like apache settings are I assume in /etc/apache|httpd
Those settings are probably dangerous to blindly copy so those are settings which need to be recrerated through the webinterface?
 
adding user with correct domain httpd confs will be made automatically, unless u made custom edit on httpd.conf (the one in /etc/httpd/confs/httpd.conf) i would not suggest to restore it.
 
Btw, there have never been made real DA-backups.

What backups are you talking about? Neither admin level nor reseller level backups have ever been done?

If you have never done any customizations to any configs, then use default configs. That's OK. In most cases it's a good starting point.

P.S. I've seen at least two topics with working solutions. There is even a HowTo!

http://lmgtfy.com/?q=restore+server+site:directadmin.com
 
If your new installation is exactly the same as the old, same version number for everything and I mean everything, then you can probably just copy over all the directories except the ones called either /tmp or /temp.

But if anything at all is different you're going to break the new server.

Note I do not guarantee anything in this post to work. I do guarantee my work, and I can restore your server, by examining lots of files to see what needs to be changed, using my years of experience in configuring webservers (since 1995).

But it wouldn't be cheap; the last time we did it for a client it took approximately 12 hours.

If you're interested in discussing this with me, please send an email, not a private message. Or search our Advertising subforum to find someone else :).

Jeff
 
Back
Top