[How To] How to restore a crashed Directadmin Server from old HDD

syslint

Verified User
Joined
Oct 24, 2010
Messages
97
Hello,

I just wrote a small how to for restoring a crashed DA server . It is easy to restore form the old HDD. This will help if you have an OS crash, or if you are inside a vps and which is not rebooting , Then you can use this method to restore the DA.

Please read more about it from here
 
Thanks for sharing.

Ive a question

cp -avrf /old/usr/local/directadmin/conf /usr/local/directadmin/

First, -avrf keep the permission of the destination or origin?
Second, why dont you restore data/users directory aswell?

That guide seems to be supposed that you had already created all user that was on old server. Am i right?

Cause if you didnt create user the /home/* file will be just file without the right user and permission.

Am i wrong?

Regards
 
All users supposed to be transferred:

Code:
cp -avrf  /old/etc/passwd  /etc/
cp -avrf  /old/etc/group /etc/
...
...
cp -avrf  /old/usr/local/directadmin/data /usr/local/directadmin/

It's already there, and no user will be ever left.
 
Back
Top